[MUD-Dev] Multithreading: AI, Sockets, Brains, Bodies, and Storage

J C Lawrence claw at kanga.nu
Thu Feb 20 02:41:15 New Zealand Daylight Time 2003

On Wed, 19 Feb 2003 19:53:16 -0800 
Brian Lindahl <lindahlb at hotmail.com> wrote:

>     - Threads are allocated via a pool, called a Spool
>     - Machine-specific optimization can be done by altering the Spool
>     size
>     - Threads can be suspended/resumed
>     - SpawnThread creates a new thread
>     - SpawnTiedThread creates a new tied thread
>     - WaitOnThreads waits until all threads spawned from calling
>     thread return

Be careful here if operating within a POSIX threading world.  Correct
support for pthread cancellations and scheduling is a frequently borked
and unstable area.  While not for those reasons, you might like to look
instead at using continuations/coroutines/fibres instead (cf Stackless
Python, Pth, etc).

J C Lawrence                
---------(*)                Satan, oscillate my metallic sonatas. 
claw at kanga.nu               He lived as a devil, eh?		  
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.

MUD-Dev mailing list
MUD-Dev at kanga.nu

More information about the MUD-Dev mailing list