Message131643
| Author |
pitrou |
| Recipients |
brian.curtin, kristjan.jonsson, loewis, pitrou, sbt, tim.golden |
| Date |
2011年03月21日.12:46:27 |
| SpamBayes Score |
7.145041e-06 |
| Marked as misclassified |
No |
| Message-id |
<1300711585.3498.3.camel@localhost.localdomain> |
| In-reply-to |
<1300711012.93.0.404983837082.issue11618@psf.upfronthosting.co.za> |
| Content |
> I'm just providing this as a fast alternative to the Semaphore, which
> as far as I know, will cause a kernel call every time.
A Semaphore might be "slow", but I'm not sure other primitives are
faster. For the record, I tried another implementation using a critical
section, and it's not significantly faster under a VM (even though MSDN
claims critical sections are fast).
Have you timed your solution? |
|