Re: A new Critical Section for high contention situations

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



[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?

.



Relevant Pages

  • Network Stack Locking
    ... things like locking strategies in this e-mail. ... "Network Stack Locking" task of SMPng. ... Additional work is taking place to explore socket locking issues in: ... acquire Giant without generating a lock order issue. ...
    (freebsd-arch)
  • Re: Performance issue of ASP .NET
    ... the appication object locking is just a potential cause. ... |> Thanks for your response Budhi, ... Lock the Application Object ... Unlock the Application Object ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Lock the computer
    ... which password will be required to unlock it? ... something else prior to locking? ... When you lock it, the system will only unlock when the password ... MS-MVP Windows Media Center\Windows Powered Smart ...
    (microsoft.public.windowsxp.basics)
  • Re: 1987 BMW 325 Central Locking System Issue
    ... How much info is needed on how to lock and unlock a car? ... Try locking and unlocking the rntire car from the trunk. ...
    (alt.autos.bmw)
  • Re: Unlock VBA project
    ... but I do remember locking the project. ... how to unlock it. ... >I can't seem to lock the VBA project without using a ... >>I lock my VBA code without using a passward. ...
    (microsoft.public.excel.programming)