Re: How to wait for multiple threads simultaneously?



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.
.



Relevant Pages

  • Re: About dispatching process
    ... disabled loop is observed as a spin loop by other processors. ... a disabled loop can bring a system outage. ... Disabling oneself for interrupts means holding a spin ... dispatcher itself) are resolved by that excessive spin setup, too, but the ...
    (bit.listserv.ibm-main)
  • Re: What keeps an electron from being "absorbed" by a proton?
    ... Spin two opposite charges the same way, ... Two oppositely spinning electrons are slightly attracted to each ... Now draw a line through that center and rotate the line ...
    (sci.physics)
  • Re: Spins
    ... I think that did much more to prepare me for the unexpected spin than ... followed by a half loop downwards. ... Obviously there was still some slip present, because suddenly, at 45 degrees pitch, just where the G load starts to build, that pretty landscape in front of me disappeared and all I saw was a blurry, undefined and rotating green disc. ... But since that experience I strongly believe that the usual spin demonstration is pretty much useless to prepare a pilot for that accidental spin. ...
    (rec.aviation.piloting)
  • Re: Random reordering of a list
    ... On Sun, 7 Nov 2004, Top Spin wrote: ... > number generator, will the following algorithm do the job? ... > Loop through the list. ...
    (sci.stat.math)
  • Re: About dispatching process
    ... This is not exactly true: ... A disabled loop by itsself will not generate a problem. ... therefor spin loop) waiting for an answer. ... detect this and generate an "excessive spinloop time out" condition. ...
    (bit.listserv.ibm-main)