Micro-threads: a simple example, UDPPort wrapper

Mike Fletcher mfletch at tpresence.com
Wed May 24 00:04:41 EDT 2000


Attach to find a fairly simple UDP port wrapper which uses three
micro-threads to perform polling of a basic socket.  As you can see, without
select support, this is inefficient (it is constantly checking to see if it
can read/write).  More on that in a follow-up :) .

Enjoy,
Mike

__________________________________
 Mike C. Fletcher
 Designer, VR Plumber
 http://members.home.com/mcfletch

-------------- next part --------------
A non-text attachment was scrubbed...
Name: udpport3.py
Type: application/octet-stream
Size: 7159 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20000524/f4faac7e/attachment.obj>


More information about the Python-list mailing list