thread conditional code

Robin Becker robin at jessikat.fsnet.co.uk
Sat Apr 14 06:13:59 EDT 2001


It seems that using a lock requires the threading overhead; so is there
any way to avoid locking when threading hasn't been started? I guess I
would like to know if thread.c's initialized variable is true / false.

That way I could conditionally lock access to contentious variables and
avoid thread overhead when not needed.
-- 
Robin Becker



More information about the Python-list mailing list