Simple threaded web-server based on BaseHTTPServer?

Paul Rubin phr-n2002a at nightsong.com
Thu Jan 31 20:25:36 EST 2002


Mark Hammond <mhammond at skippinet.com.au> writes:
> right - that is what Tim was getting at.  You would still need a
> thread-pool of real OS threads that performed the IO for you, so the
> micro-threads can still execute even when the real OS thread doing the
> IO is blocked.  Not trivial :(

Most decent OS's support non-blocking i/o.  You don't need to have OS
threads hanging around to do blocking operations.  Just use
non-blocking operations at the low level, and dispatch their results
to the right microthreads.



More information about the Python-list mailing list