Science, asked by supriyakashid43, 4 months ago

A thread can be
when waiting for a resource.​

Answers

Answered by pinkysaini1234
1

wait() thread cannot just hold the lock when waiting, because that way producers are not able to write into the queue. ... wait() thread has to give up the resource before start waiting.

Similar questions