[Python-Dev] GIL behaviour under Windows

Antoine Pitrou solipsis at pitrou.net
Thu Oct 22 11:20:32 CEST 2009

Sturla Molden <sturla <at> molden.no> writes:
> With two threads and a check interval og 100, only 61 of 100000 check 
> intervals failed to produce a thread-switch in the interpreter. I'd call 
> that rather fair. 

This number lacks the elapsed time. 61 switches in one second is probably
enough, the same amount of switches in 10 or 20 seconds is too small (at least
for threads needing good responsivity, e.g. I/O threads).

Also, "fair" has to take into account the average latency and its relative
stability, which is why I wrote ccbench.


More information about the Python-Dev mailing list