Basic HTML version of Foils prepared
May 19 99
Foil 21 Synchronization - Example
From
Elements of Concurrent Programming in Java Tango Group Internal Technology Seminars --
Spring 99
.
by
Lukasz Beca
1
public LinkedCell next() {
2
return next_;
3
}
4
public boolean includes(double x) {
5
synchronized(this) {
6
if (value_ == x)
7
return true;
8
}
9
if (next() == null)
10
return false;
11
else
12
return next().includes(x);
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