[Pythonmac-SIG] re: 1.6a1 + threading vs. 1.5.42 (stackless)+ uthread vs. no threading at all

Jack Jansen jack@oratrix.nl
Tue, 18 Apr 2000 16:18:35 +0200


What strikes me is that the 10-threads time appears to be almost exactly 10 
times the single-thread case.

If someone has the time to look at this, i.e. see whether the same holds for a 
20-thread multithreaded version, I'd appreciate that.

If this is the case there's a few more things I'd like tried (i.e. please 
please take some work off my hands:-): the first one is checking whether the 
threads run synchronous by any chance, something like
starttimes = [0]*nthreads
stoptimes = [0]*nthreads
for i in range(nthreads):
	starttimes[i] = time.time()
	pystone.main()
	stoptimes[i] = time.time()
print starttimes, stoptimes
or so would be interesting.

The next thing I'd be interested in is whether event-things (frantically 
moving the mouse, thumping on the keyboard) make any difference to the timing.

So, if someone is willing to try this and report back: please....
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm