S
sivasu.india
Hi,
I am not familiar with Thread in java.I have one scenario.Let
me explain conceptually.
suppose i have one method
public synchronised void m1()
{
.....
}
and another
public synchronised void m2()
{
.......
}
Suppose i have two threads T1,T2.
Now what i want is , if T1 is accessing m1() i don't want T2 to access
m2().Please give me some idea how to do this.Which methods i can use
to identify this?
I will be very thanlful ,if somebody can exaplain me this with an
example programmatically.
Regards,
Siva
I am not familiar with Thread in java.I have one scenario.Let
me explain conceptually.
suppose i have one method
public synchronised void m1()
{
.....
}
and another
public synchronised void m2()
{
.......
}
Suppose i have two threads T1,T2.
Now what i want is , if T1 is accessing m1() i don't want T2 to access
m2().Please give me some idea how to do this.Which methods i can use
to identify this?
I will be very thanlful ,if somebody can exaplain me this with an
example programmatically.
Regards,
Siva