Disuss the role
thread
Synchronization it inter
thread communication? Explain
with an example.
Answers
Answered by
2
Answer:
Cooperation (Inter-thread communication) is a mechanism in which a thread is paused running in its critical section and another thread is allowed to enter (or lock) in the same critical section to be executed.It is implemented by following methods of Object class: wait notify() notifyAll.
Similar questions