>>>>> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes:

  DS> And don't forget the libraries that are picky about which thread calls
  DS> into them -- there are some that require that the thread that created
  DS> the handle for the library be the thread that calls into the library
  DS> with that handle. (Though luckily those are pretty rare) And of course
  DS> the non-reentrant libraries that require a global library lock for all
  DS> calls otherwise the library state gets corrupted.

  DS> Aren't threads fun? :)

hence my love for events and forked procs. i even have a solution to
that very problem by forking the DBI (or other nonthreaded lib) process
and communicating to that via messages. but we still have to support
threads. just gonna be messy and i will prolly rarely use them
(especially since we will have a core event loop and async i/o (which
will prolly use kernel threads (according to dan) but not be parrot
threads ) ) (end of lisp text) :-/

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Reply via email to