[Python-Dev] Threading idea -- exposing a global thread lock (original) (raw)
Guido van Rossum guido at python.org
Tue Mar 14 21:26:35 CET 2006
- Previous message: [Python-Dev] Threading idea -- exposing a global thread lock
- Next message: [Python-Dev] Threading idea -- exposing a global thread lock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 3/14/06, Phillip J. Eby <pje at telecommunity.com> 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/)
- Previous message: [Python-Dev] Threading idea -- exposing a global thread lock
- Next message: [Python-Dev] Threading idea -- exposing a global thread lock
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]