Simple threaded web-server based on BaseHTTPServer?

Tim Peters tim.one at home.com
Thu Jan 31 20:44:15 CET 2002


[Mark Hammond]
> ...
> If Stackless has microthreads that have very little overhead

Right, that's the attraction -- small memory burden, very fast context
switches, and as many microthreads as you want (limited only by available
heap space).

> (which implies not based on OS threads)

Also right.

> then that would probably be a good option.

Well, because there aren't "real threads" under the covers, a blocking
operation in one uthread blocks *all* uthreads for the duration.

It should be possible to combine uthreads w/ native threads, but the
semantic model gets ever-harder to master the more gimmicks get tossed into
the mix.





More information about the Python-list mailing list