[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

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

[Full Header] [Plain Text]
From: J C Lawrence <claw@kanga.nu>
Newsgroups: nu.kanga.list.mud-dev
Date: Thu, 20 Feb 2003 02:41:15 -0800
References: [1]
Organization: Kanga.Nu
On Wed, 19 Feb 2003 19:53:16 -0800 
Brian Lindahl <lindahlb@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@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@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev