MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
Re: [MUD-Dev] Question about multithreaded servers
On Tue, 18 Jan 2000 22:31:50 -0700
cg <cg#ami-cg,GraySage.Edmonton.AB.CA> wrote:
> [Greg Underwood:]
>>>>> I suppose just by making a simple requirement that all
>>>>> objects must be secured at the begining of the cript would
>>>>> take care of that.
Ahem. Attribution?
>> No, that's not true. Just because you attempt to lock everything
>> before you execute the script doesn't mean you avoid deadlocks.
> Perhaps the original writer was assuming that all the locks are
> acquired at once. An example of that is the SysV locking stuff in
> some versions of UNIX. It's ugly as sin, but essentially allows
> you to do a whole mess of lock operations all at once, atomically.
That requires you to know the full list of to-be-locked resources in
advance, something which is not necessarily difficult in an OS
context with its clearly defined call tree semantics, but can be an
utter bitch in a MUD. This is one of the major reasons I went with
the lockeless model. Going for a hard lock model looked fraught
with Oh-damn-I-forgot-about-that's.
--
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
- Thread context:
- Re: [MUD-Dev] Question about multithreaded servers, (continued)
- Re: [MUD-Dev] Question about multithreaded servers,
Jon A. Lambert jlsysinc#ix,netcom.com, Mon 17 Jan 2000, 09:02 GMT
- RE: [MUD-Dev] Question about multithreaded servers,
cg cg#ami-cg,GraySage.Edmonton.AB.CA, Wed 19 Jan 2000, 05:33 GMT
- Re: [MUD-Dev] Question about multithreaded servers,
Emil Eifrém emil#windh,com, Mon 31 Jan 2000, 17:29 GMT
- [MUD-Dev] A quick business question...,
Geoffrey A. MacDougall geoffrey#poptronik,com, Mon 10 Jan 2000, 21:20 GMT
[ Other Periods
| Other mailing lists
| Search
]