On 3/14/06, Phillip J. Eby firstname.lastname@example.org wrote:
At 02:21 PM 3/14/2006 -0500, Tim Peters wrote:
The common meaning is:
a section of code such that, once a thread enters it, all other threads are blocked from entering the section for the duration
That doesn't seem like a very useful definition, since it describes any piece of code that's protected by a statically-determined mutex. But you clearly have more experience in this than I.
Trust Tim. That's what "critical section" means in most places. And yes, indeed, a static mutex is the obvious way to implement it.
-- --Guido van Rossum (home page: http://www.python.org/~guido/)