Project translated automatically.
Log in
or
register,
to view the original
Write a program in which all 4 classic parallel programming tasks (Java language) are realised: Manufacturers - consumers. 2.1 The Writers are readers without priority to writers.
2.2 The Writers are readers with the blocking of new readers when the writer is waiting for the entrance.
3 . of the philosophers.
and 4. The sleeping peruvian.
Use the following synchronization mechanisms. Object, synchronized, wait / notify. ReentrantLock Semaphore