Basic HTML version of Foils prepared
May 19 99
Foil 6 Object as a Monitor
From
Elements of Concurrent Programming in Java Tango Group Internal Technology Seminars --
Spring 99
.
by
Lukasz Beca
1
Synchronized method
2
Synchronized block
3
Unsynchronized method
4
Lock
5
Monitor Queue
6
Object
7
public synchronized void methodA(){
8
// any code
9
}
10
objectA.methodA();
11
synchronized(objectA){
12
// any code
13
}
in Table To:
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Wed May 19 1999