• 16
  • Locked
In the TransferObject class, arrange calls to the wait/notify/notifyAll methods to ensure the sequential production and consumption of objects. In the run methods of the ConsumerTask and ProducerTask classes, create the necessary synchronized blocks.
You can't complete this task, because you're not signed in.
Comments (3)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 29 , Seattle, United States
17 June 2019, 17:10
What does this mean? > "P.S. Always try to use a concurrent collection rather than using the wait/notify/notifyAll methods manually." What could you use here?
Level 41 , São Paulo, Brazil
11 August 2020, 17:51
I'd like to understand it too.
Justin Smith
Level 38 , Greenfield, USA, United States
6 April 2022, 11:19
I found that to be a red herring. I followed the instructions and never used any kind of collection, and it passed.