Re: mutex overkill ?
- From: "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 16 Sep 2006 10:27:12 -0700
creation is not CPU intensive,but acquisition can be expensive from a perf
perspective (not necessarily cpu usage, but rahter the inability to maximize
the CPU). a mutex (or event or semaphore) acquisition will require a UM->KM
transition. a critical section will not make this transition if there is no
contention. a critical section is only useful in one process while a
mutex/semaphore/event may be shared across multiple processes (and have
different rules for ownership)
d
--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.
"stef" <stef.pellegrino@xxxxxxxxx> wrote in message
news:1158418581.311732.205420@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I would like to know if the creation of a mutex is very CPU time
consuming or not, or "just a little bit"...
I've searching for that on the web, but it's not very clear.
thanx
.
- Follow-Ups:
- Re: mutex overkill ?
- From: anton bassov
- Re: mutex overkill ?
- References:
- mutex overkill ?
- From: stef
- mutex overkill ?
- Prev by Date: Re: Mapping memory of another process
- Next by Date: transmit mouse clicks from transparent window to underlying window?
- Previous by thread: mutex overkill ?
- Next by thread: Re: mutex overkill ?
- Index(es):
Relevant Pages
|