Hello,
Sorry for opening an issue and not following suggested approach of creating a file, but I am not yet sure about the contents of potential fix. I am happy to create a file if you agree about the issue:
In chapter 28.13 (A Simple Approach: Just Yield, Baby), as an introduction to 28.14 (Using Queues: Sleeping Instead Of Spinning), it says
Worse, we have not tackled the starvation problem at all. A thread may get caught in an endless yield loop while other threads repeatedly enter and exit the critical section. We clearly will need an approach that addresses this problem directly.
A similar line can be found in 28.14 (in context of previously introduced approaches):
Either way, there is potential for waste and no prevention of starvation.
Starvation problem was addressed with the ticket lock I believe?
Hello, Sorry for opening an issue and not following suggested approach of creating a file, but I am not yet sure about the contents of potential fix. I am happy to create a file if you agree about the issue:
In chapter 28.13 (A Simple Approach: Just Yield, Baby), as an introduction to 28.14 (Using Queues: Sleeping Instead Of Spinning), it says
A similar line can be found in 28.14 (in context of previously introduced approaches):
Starvation problem was addressed with the ticket lock I believe?