BrowserUk gives you the best advice, but you may find this node interesting:
Please suggest a non-forking way to do this (OS: windows) , and specifically
ikegami's response in
Re: Please suggest a non-forking way to do this (OS: windows) (solution). Tk's fileevent is quite similar to select, and the code shows a low-level way on Windows to get some select functionality.