Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Queue" #15

Open
nickdrozd opened this issue Sep 3, 2019 · 1 comment
Open

"Queue" #15

nickdrozd opened this issue Sep 3, 2019 · 1 comment

Comments

@nickdrozd
Copy link

The word "queue" is used a few times, especially in section 3.8, to describe threads waiting on a semaphore. "Queue" typically implies (in both CS jargon and in common language) FIFO ordering, but that isn't the case with semaphores, right? No particular thread is guaranteed to be unblocked at a particular time, so it's more like a pool than a queue. I suggest adding a comment somewhere to clarify.

@platipo
Copy link

platipo commented Sep 3, 2019

No particular thread is guaranteed to be unblocked at a particular time, so it's more like a pool than a queue.

Actually with "queue" the author refers to strong semaphore, which guarantees avoiding starvation by using a FIFO policy.

On the other hand, there is the weak semaphore which does not specify the order in which processes are unlocked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants