Stackless/microthreads merge news
Will Ware
wware at world.std.com
Mon Mar 13 23:44:51 EST 2000
Moshe Zadka (moshez at math.huji.ac.il) wrote:
> What if you write a MOO-like universe? Few operations access IO (the
> database is synched to the disk in a seperate micro-thread, which does
> block other threads occasionally, but it happens once per day), but
> 1000 threads might be a bit hard on an OS.
Microthreads are not OS threads. They are threads of Python bytecode
execution, operating within a single OS thread. You can run 1000
microthreads in a single instance of the Python interpreter. The
greatest danger you will face is that they will probably run a little
slowly.
Accesses to a disk or a database can be controlled with a semaphore
so that only one microthread accesses it at any given time.
In preparation for the imminent release of microthreads, the manual has
moved to its final URL at
http://world.std.com/~wware/uthread.html
--
- - - - - - - - - - - - - - - - - - - - - - - -
Resistance is futile. Capacitance is efficacious.
Will Ware email: wware @ world.std.com
More information about the Python-list
mailing list