Grokking Multithreading and Concurrency for Coding Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
Nobody waits on buffer_not_empty

Shlomi Fisher

Aug 10, 2024

It's missing in the C++ solution

0

0

Comments
Comments
Salih Boshnak
Salih Boshnak8 months ago

i entered the discussion to see if someone also noticed this

i think it gives better performance

the worker should wait on the buffer_not_empty() instead of checking and yeilding in case of no data

On this page