Subj : Re: Threading and Timeouts To : comp.programming.threads From : David Schwartz Date : Mon Jul 25 2005 08:38 pm "Charles Bryant" wrote in message news:2005-07-25-22-56.0@chch.demon.co.uk... > This is very non-intuitive and a considerable nuisance. It means that if > you have a program where you need to accommodate a varying number of > sockets being used with select(), you need to have special handling for > the cases where there happen to be no sockets currently in each of the > sets. It also means that the common idiom to get a microsecond-resolution > pause: > select(0, 0, 0, 0, x) > breaks on Windows. Especially when you consider that the whole point of 'select' in Windows is compatability with Unix. It's not in any sense a preferred way to do socket discovery on Windows. DS .