Re: Extra reference?
- From: "Maxim S. Shatskih" <maxim@xxxxxxxxxxxxxxxx>
- Date: Tue, 5 Sep 2006 23:01:37 +0400
The atomic decrement a generic semaphore would need (in any OS) has
more overhead than the atomic decrement or exchange the notification
event would need?
Yes, notifications events are even free from this decrement :) decrement is not
atomic, it is done under KiDispatcherLock anyway, since some decisions on
thread awakening must be done after increment anyway, and all of this must be
atomic - i.e. under spinlock.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
.
- References:
- Re: Extra reference?
- From: Maxim S. Shatskih
- Re: Extra reference?
- From: Alexander Grigoriev
- Re: Extra reference?
- From: Don Burn
- Re: Extra reference?
- From: Maxim S. Shatskih
- Re: Extra reference?
- From: Maxim S. Shatskih
- Re: Extra reference?
- Prev by Date: Re: [KMDF USB] Who is responsible for zero-length packet termination of bulk write?
- Next by Date: Re: Driver memory footprint/CPU utilization
- Previous by thread: Re: Extra reference?
- Next by thread: Re: Cancel-safe without a thread?
- Index(es):