Re: Are Perl6 threads preemptive or cooperative?
[email protected] (Dan Sugalski) Mon, 28 Aug 2000 13:23:31 -0400
| Newsgroups | perl.perl6.language.flow |
|---|---|
| Message-ID | <[email protected]> |
At 12:11 PM 8/28/00 -0500, David L. Nicol wrote: >What if every subroutine tagged itself with a list of the globals >it uses, so a calling routine would know to add those to the list >of globals it wants locked? If you're looking for automagic locking of variables, you're treading deep into "Interesting Research Problem" territory (read: Solve the Halting Problem and win a prize!) if you want it to not deadlock all over the place. Been there. Tried that. Backed away *real* slowly... :) Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [email protected] have teddy bears and even teddy bears get drunk