Back
Close

Computing with Data

elgeish
585.8K views

The Producer-Consumer Problem - Part V

In Java, it's idiomatic to use wait and notify, which require acquiring a lock on the object for which those methods are called:

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io