Message134583
| Author |
neologix |
| Recipients |
neologix, vstinner |
| Date |
2011年04月27日.15:37:25 |
| SpamBayes Score |
5.074707e-06 |
| Marked as misclassified |
No |
| Message-id |
<1303918647.87.0.86586282784.issue11871@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The most obvious explanation for that failure is that the barrier's timeout is too low.
def test_default_timeout(self):
"""
Test the barrier's default timeout
"""
#create a barrier with a low default timeout
barrier = self.barriertype(self.N, timeout=0.1)
If the last thread waits on the barrier more than 0.1s after the first thread, then you'll get a BrokenBarrierError.
A 0.1s delay is not that much, 100ms was the default quantum with Linux O(1) scheduler... |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年04月27日 15:37:27 | neologix | set | recipients:
+ neologix, vstinner |
| 2011年04月27日 15:37:27 | neologix | set | messageid: <1303918647.87.0.86586282784.issue11871@psf.upfronthosting.co.za> |
| 2011年04月27日 15:37:25 | neologix | link | issue11871 messages |
| 2011年04月27日 15:37:25 | neologix | create |
|