From: Chris W. <ch...@cw...> - 2002-11-13 04:36:44
|
On Mon, 2002-11-11 at 02:26, And...@Be... wrote: > since the new ithread environment is a shared nothing thread env per > default, you have to share everything expicitly, which gives you a lot or > control. If you keep the context a singleton which does the appropriate > lock($myvar) things in the accessor methods on write access, there should > not be a problem. In a non threaded env lock() is a noop. This makes a lot of sense and shouldn't be too difficult to deal with. > Also, there are quite a lot of interesting bits of Thread code on CPAN - > Thread::Pool maybe beeing the most interesting... I'll probably wait and see what threaded server implementations come up first :-) (There are enough fish to fry for now...) Thanks, Chris -- Chris Winters (ch...@cw...) Building enterprise-capable snack solutions since 1988. |