[Python-ideas] A concurrency survey of sorts
Antoine Pitrou
solipsis at pitrou.net
Fri Nov 4 19:49:50 CET 2011
On Fri, 4 Nov 2011 18:42:25 +0000
Weeble <clockworksaint at gmail.com> wrote:
>
> select: Yes.
>
> WaitForSingleObject: Really? The documentation seems to say only on
> events, mutexes, semaphores, processes and threads. No mention of
> pipes or files. http://msdn.microsoft.com/en-us/library/bb202783.aspx
> Also, presumably it would be WaitForMultipleObjects? Regardless, I'm
> sure there's some way to do this. I just don't think it's obvious or
> easy enough to be considered a reasonable alternative to using
> threads.
It works with pipes for sure, it's used in multiprocessing (in 3.3).
However, the pipes have to be set non-blocking, which implies using
overlapped I/O (or another form of non-blocking Windows I/O) which is
quite a pain.
> I just want to be sure - the idea of removing the threading module
> sounds ludicrous. It's not getting serious consideration, is it?
No :-)
Regards
Antoine.
More information about the Python-ideas
mailing list