From: Lothar Scholz Date: 2003-09-25T09:15:50+09:00 Subject: Re: When threads block Hello gabriele, Wednesday, September 24, 2003, 5:39:20 PM, you wrote: gr> The problem should be related to windows' select(). gr> On *nix IO stuff is transparently put in a select, and ruby takes care gr> of giving a little time to every thread when select gives them output. gr> On windows this won't work cause select() just accepts socket gr> descriptor. I wonder if these works in python. gr> And is WaitForMultipleObjects() useful someway ? It's a joke right ? Every serious windows programming books warns you to not use 'select' on a window plattform. Using WASSelect is the normal way. It is much better then the UNIX API and integrates perfect into the windows environment. But a new implementation should not use them either. The best is to use asynchron system calls that calls back when data is available, it is much faster then the LINUX ip stack implementation. -- Best regards, Lothar mailto:mailinglists@scriptolutions.com