Re: How to wait for multiple threads simultaneously?
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Thu, 14 Feb 2008 08:53:13 +0100
David Schwartz <davids@xxxxxxxxxxxxx> writes:
On Feb 13, 3:52 am, Rainer Weikusat <rweiku...@xxxxxxxxxxx> wrote:
A 'spin lock' is one which does not involve blocking, but
busy-waiting.
Right, but this is not because of the general meaning of "spin"
The general meaning of 'spin' is 'rotate fast'.
'Condition variables' are something threads can block
on, hence, they don't "spin" on them.
If they loop until something happens, they are spinning.
But they typically don't loop until something happens. This is just a
special case the code needs to be prepared for, while it is the exact
behaviour of a spin lock.
.
- Follow-Ups:
- Re: How to wait for multiple threads simultaneously?
- From: David Schwartz
- Re: How to wait for multiple threads simultaneously?
- References:
- How to wait for multiple threads simultaneously?
- From: chjfth
- Re: How to wait for multiple threads simultaneously?
- From: David Schwartz
- Re: How to wait for multiple threads simultaneously?
- From: Rainer Weikusat
- Re: How to wait for multiple threads simultaneously?
- From: David Schwartz
- Re: How to wait for multiple threads simultaneously?
- From: Rainer Weikusat
- Re: How to wait for multiple threads simultaneously?
- From: David Schwartz
- How to wait for multiple threads simultaneously?
- Prev by Date: Re: portable application
- Next by Date: Re: portable application
- Previous by thread: Re: How to wait for multiple threads simultaneously?
- Next by thread: Re: How to wait for multiple threads simultaneously?
- Index(es):
Relevant Pages
|