[Python-Dev] Non-blocking (asynchronous) timer without thread?
Evgeniy Khramtsov
xramtsov at gmail.com
Sat Dec 23 07:53:25 CET 2006
Mike Klaas пишет:
> I'm not sure how having python execute code at an arbitrary time would
> _reduce_ race conditions and/or deadlocks. And if you want to make it
> safe by executing code that shares no variables or resources, then it
> is no less safe to use threads, due to the GIL.
>
Ok. And what about a huge thread overhead? Just try to start 10-50k
threading timers :)
> If you can write you application in an event-driven way, Twisted might
> be able to do what you are looking for.
I don't like an idea of Twisted: you want the banana, but get the whole
gorilla as well :)
More information about the Python-Dev
mailing list