Re: Multi-threading article finally "finished" - reviewers welcome
From: William Stacey [MVP] (staceywREMOVE_at_mvps.org)
Date: 06/22/04
- Next message: Andre Kaufmann: "Re: VS.NET Perfomance and speed question ( Comparing with C++ Apps)"
- Previous message: William Stacey [MVP]: "Re: Multi-threading article finally "finished" - reviewers welcome"
- In reply to: Valery Pryamikov: "Re: Multi-threading article finally "finished" - reviewers welcome"
- Next in thread: Valery Pryamikov: "Re: Multi-threading article finally "finished" - reviewers welcome"
- Reply: Valery Pryamikov: "Re: Multi-threading article finally "finished" - reviewers welcome"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Jun 2004 23:07:21 -0400
Any good links on this detail?
-- William Stacey, MVP "Valery Pryamikov" <Valery@nospam.harper.no> wrote in message news:OnaIcM7VEHA.3596@tk2msftngp13.phx.gbl... > > - When thread scheduler sees that thread is waiting on Win32 > > synchronization objects it immediately schedules context switch to another > > runnable thread instead of wasting time spinning. > > shoud read as: > When thread scheduler sees that thread is waiting on non-signaled Win32 > synchronization objects... > > -Valery. > http://www.harper.no/valery > > "Valery Pryamikov" <Valery@nospam.harper.no> wrote in message news:... > >> AFIK, every primitive is > >> ultimately based on a spin lock at the lowest level. > > If we talk about kernel mode Win32 synchronization objects - than it's not > > quite so. > > Yes, spin lock is used by code, but it is different in two ways: > > - When thread scheduler sees that thread is waiting on Win32 > > synchronization objects it immediately schedules context switch to another > > runnable thread instead of wasting time spinning. > > > > - Additionally, kernel mode spin lock sets idle bit on interrupt command > > register (on Intel) or use other means (on other processor types) to > > notify processor that thread is running idle operation. Interrupt command > > register and this bit is not accessible from the user mode. > > > > > > -Valery. > > http://www.harper.no/valery > > > >
- Next message: Andre Kaufmann: "Re: VS.NET Perfomance and speed question ( Comparing with C++ Apps)"
- Previous message: William Stacey [MVP]: "Re: Multi-threading article finally "finished" - reviewers welcome"
- In reply to: Valery Pryamikov: "Re: Multi-threading article finally "finished" - reviewers welcome"
- Next in thread: Valery Pryamikov: "Re: Multi-threading article finally "finished" - reviewers welcome"
- Reply: Valery Pryamikov: "Re: Multi-threading article finally "finished" - reviewers welcome"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|