Author njs
Recipients njs, vstinner
Date 2017-04-12.02:13:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491963219.18.0.714511806327.issue30038@psf.upfronthosting.co.za>
In-reply-to
Content
The attached script wakeup-fd-racer.py fails consistently for me using cpython 3.6.0 on my windows 10 vm:

> python wakeup-fd-racer.py
Attempt 0: start
Attempt 0: FAILED, took 10.016000000000076 seconds
select_calls = 2

(It may help that the VM only has 1 CPU? But the same test passes on Linux even when I use taskset to restrict it to 1 cpu. Maybe Windows has some scheduling heuristic where one thread writing to a socket when another thread is blocked on it triggers an immediate context switch.)
History
Date User Action Args
2017-04-12 02:13:39njssetrecipients: + njs, vstinner
2017-04-12 02:13:39njssetmessageid: <1491963219.18.0.714511806327.issue30038@psf.upfronthosting.co.za>
2017-04-12 02:13:39njslinkissue30038 messages
2017-04-12 02:13:38njscreate