Implementing Multithreading for Concurrent Code Executionwait/notify and Condition: waiting for a state change
In one line: wait and notify need the object's monitor; wait releases it, so always wait in a while loop. Condition does the same for a Lock.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read every lesson — your progress is saved.
Spotted a mistake in this part?