in reply to Re^2: Thread local variables in Thread::Pool::Simple
in thread Thread local variables in Thread::Pool::Simple
Don't threads use any available CPUs? Maybe not.
Anyway, since Thread::Pool::Simple uses threads, the simplest solution it just to add use forks; early in your program. (Before use Thread::Pool::Simple;, at least.)
By the way, how often do you end up connecting to the database? Maybe the parent should do all the database stuff. ( Why does a parser even need a database? )
I wonder how well profilers deal with threads. ( "Devel::NYTProf is not currently thread safe." doh! )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Thread local variables in Thread::Pool::Simple
by Annirak (Novice) on Sep 18, 2009 at 17:19 UTC | |
by ikegami (Patriarch) on Sep 18, 2009 at 17:33 UTC |