0 votes
in JAVA by
Write wait-notify code for producer-consumer problem?

1 Answer

0 votes
by

Please see the answer for a code example. Just remember to call wait() and notify() method from synchronized block and test waiting for condition on the loop instead of if block.

Related questions

0 votes
asked Jan 24, 2020 in JAVA by rahuljain1
0 votes
asked Feb 13, 2020 in JAVA by rahuljain1
...