I
Ivan
how to make a single method thread safe?
example:
class A
{
void func() {}
}
thread1:
A a1 = new A();
a.func();
thread2:
A a2 = new A();
a.func();
Ivan
example:
class A
{
void func() {}
}
thread1:
A a1 = new A();
a.func();
thread2:
A a2 = new A();
a.func();
Ivan