sys.check_interval=1000 # interrupt thread every 1000 instructions
But forked processes are MUCH faster.
Do you really need threads for your application? If not, I'd suggest
starting up your server, loading your code, and forking to handle
incoming requests. This is how we are doing our WWW server, for