Question DSA-QUE-0038
EasyIn a producer–consumer system, what does a blocking queue do when it is empty?
- A.
Returns a random item
- B.
Makes the consumer wait until an item is added
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Queues and Deques question
In a producer–consumer system, what does a blocking queue do when it is empty?
Returns a random item
Makes the consumer wait until an item is added
Sign up free to see the answer and a step-by-step explanation.
Deletes itself
Crashes the program