Re: A new Critical Section for high contention situations
- From: "Chris Thomasson" <cristom@xxxxxxxxxxx>
- Date: Fri, 16 May 2008 16:45:55 -0700
[top-post correction]
"Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> wrote in message news:%23lrqUp6tIHA.5892@xxxxxxxxxxxxxxxxxxxxxxx[...]I guess any measured performance gain was caused by the code actually not locking anything.
"Kürþat" <xx@xxxxxx> wrote in message news:uIsEyw6tIHA.552@xxxxxxxxxxxxxxxxxxxxxxx
In my test code, I activate 10 different threads and pop items from a stack which is previously filled with 9000.000 items :
lock ()
_stack.pop();
unlock ()
Then, I measured the time passed until all items get popped.
Have you tried InitializeCriticalSectionAndSpinCount?
.
- References:
- A new Critical Section for high contention situations
- From: Kürşat
- Re: A new Critical Section for high contention situations
- From: Keith Moore
- Re: A new Critical Section for high contention situations
- From: Kürsat
- Re: A new Critical Section for high contention situations
- From: Keith Moore
- Re: A new Critical Section for high contention situations
- From: Kürsat
- Re: A new Critical Section for high contention situations
- From: Chris Thomasson
- Re: A new Critical Section for high contention situations
- From: Kürsat
- Re: A new Critical Section for high contention situations
- From: Chris Thomasson
- Re: A new Critical Section for high contention situations
- From: Kürsat
- Re: A new Critical Section for high contention situations
- From: Alexander Grigoriev
- Re: A new Critical Section for high contention situations
- From: Kürşat
- Re: A new Critical Section for high contention situations
- From: Alexander Grigoriev
- Re: A new Critical Section for high contention situations
- From: Kürşat
- A new Critical Section for high contention situations
- Prev by Date: Re: A new Critical Section for high contention situations
- Next by Date: Re: A new Critical Section for high contention situations
- Previous by thread: Re: A new Critical Section for high contention situations
- Next by thread: Re: A new Critical Section for high contention situations
- Index(es):
Relevant Pages
|