At 14:20 -0600 8/16/03, Tom Brettin wrote:
How can the boss monitor the worker?
Check for Thread::Running on CPAN and the "running" method: it should
return true while a detached thread is still running.
Elizabeth Mattijsen
Why are you detaching your thread? I'd have to reread the docs, but I think
that's your problem. If you detach your thread, then the boss thread can't
keep track of it.
>From perlthrtut:
Ignoring A Thread
join() does three things: it waits for a thread to exit, cleans up
after it, and ret
I want to have a model where the boss sends the worker off to do some work.
The worker does not need to communicate the results back to the boss.
Meanwhile, the boss needs to report that the worker is working at regular
intervals until the worker is done.
my $thread = threads->create(\&work