| Home Page |
| Course Page |
public class Xyz
{
public synchronized void abc()
{
. . .
}
public synchronized int def
(int i)
{
. . .
}
}
public class Xyz
{
public void abc()
{
synchronized (this)
{
. . .
}
. . .
}
public int def
(int i)
{
synchronized (this)
{
. . .
}
. . .
}
}
| Course Page |
| Home Page |