B M P S V

B

Bakery - class Bakery.
Memorial University of Newfoundland
8893 Concurrent Programming
Illustrate the Bakery Algorithm.
Bakery() - Constructor for class Bakery
 
Baton - class Baton.
Memorial University of Newfoundland
8893 Concurrent Programming
Solution to reader-writer problem to demo passing the baton as a means of condition synchronization using semaphores
Baton() - Constructor for class Baton
 

M

main(String[]) - Static method in class Bakery
 
main(String[]) - Static method in class Baton
 
main(String[]) - Static method in class Shared
 

P

P() - Method in class Semaphore
Acquires the semaphore: < await(val > 0) val = val - 1 >

S

Semaphore - class Semaphore.
Uses Java monitor primitives to implement semaphore.
Semaphore() - Constructor for class Semaphore
Default constructor, initializes to 0.
Semaphore(int) - Constructor for class Semaphore
Constructor with initialization.
Shared - class Shared.
Memorial University of Newfoundland
8893 Concurrent Programming
Illustrate Shared variables used incorrectly.
Shared() - Constructor for class Shared
 

V

V() - Method in class Semaphore
Releases the semaphore: < val = val + 1 >

B M P S V