Lets see if there are other alternatives then :-) Are you using sockets? Put them in non-blocking mode, get in touch with me to get my latest socket module.. :-) Another alternative is if you only need to run one thread, and on a UNIX system, you can get a sigalarm sent to you.. /Andy