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

nu.kanga.list.mud-dev

12352: Re: [MUD-Dev] Question about multithreaded servers

[Full Header] [Plain Text]
From: J C Lawrence <claw@kanga.nu>
Newsgroups: nu.kanga.list.mud-dev
Date: Sun, 30 Jan 2000 13:27:07 -0800
References: [1]
Organization: Kanga.Nu
On Sun, 16 Jan 2000 13:11:40 -0600 
Fabian  <lemkef@execpc.com> wrote:

> I wasn't planning on having a fully transactional-based system, or
> otherwise, that is surely the most attractive and elegant
> approach.  I may just have to cut that ability out, or find a way
> to reorganize it where it will fail gracefully if a lock attempt
> times-out.  

I don't know the circumstatnces that generate a script referencing
out-of-area objects, but have you considered the hack of hacing such
scripts split themselves at runtime into multiple scripts, and
there-fore multiple threads of execution, one per area?  Thus a
script which referenced objects in its own area, and objects in
areas A, B and C, you log scripts with the executor thread for areas
A, B, and C to do <whatever>, and then continue on its own way to
process its own objects.

--
J C Lawrence                                 Home: claw@kanga.nu
----------(*)                              Other: coder@kanga.nu
--=| A man is as sane as he is dangerous to his environment |=--


_______________________________________________
MUD-Dev maillist  -  MUD-Dev@kanga.nu
http://www.kanga.nu/lists/listinfo/mud-dev