[medusa] new code for CGI-ish thread pools

Samual M. Rushing rushing@n...
14 Jan 1999 12:08:14 -0000


[ok, I'll make the first post]

See the 'thread' subdirectory, you will find:

thread_channel.py
a good experiment, using pipes to bridge the sync/async gap.
somewhat impractical because it wastes file descriptors

select_trigger.py
a special channel specifically designed for waking up the main
select loop with output from other threads. a nice side-effect
of this technique is that it uses a socket as a synchronization
object; obviating the need for locks around medusa's i/o data
structures.

thread_handler.py
a module for building cgi-like systems that use a pool of threads.
uses select_trigger to create file-like objects that hide all
the magic from you.

-Sam

p.s.
a reminder, to access the read-only CVS repository:
CVSROOT = :pserver:medusa@s...:/usr/local/cvsroot
the password is 'medusa'.

------------------------------------------------------------------------
eGroup home: http://www.eGroups.com/list/medusa
Free Web-based e-mail groups by eGroups.com