Inter-thread communication mechanism - Core Java

Q.  Which mechanism is used when 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?
- Published on 22 Jul 15

a. Inter-thread communication
b. Initial-thread communication
c. Mutual Exclusive
d. None of the above

ANSWER: Inter-thread communication
 

    Discussion

  • Prajakta Pandit   -Posted on 14 Dec 15

    - Inter-thread communication is used when 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.

    - This process is all about the synchronized threads for communicating with each other.

    - This mechanism is implemented by the following methods of an Object class:
       1. wait()
       2. notify()
       3. NotifyAll()

    - It allow threads to talk or to wait on each other.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)