InitializeCriticalSectionAndSpinCount, is there a default counter?

The API method InitializeCriticalSectionAndSpinCountallows you to set the spin counter, so when it is called EnterCriticalSection, it cyclically uses the spin lock to try several times to acquire the resource. Only if all attempts fail will the thread go into kernel mode to enter the idle state.

If "normal" is called instead InitializeCriticalSection(), does the given default number counter exist? (Or is it 0, no rotation?)

+5
source share
1 answer

Quote from this article :

SpinCount... , InitializeCriticalSectionAndSpinCount API

, .

+6

All Articles