Re: Subroutine lock doesn't work for me. Please help
- From: poohc1234@xxxxxxxxx
- Date: 28 Apr 2005 13:33:04 -0700
Hi Kevin Sproule,
Thanks for replying, and yes, adding the variable does help. Can I ask
you a few more questions or whoever:
1. Why the need to add the $lock variable since doesn't the subroutine
already have a lock attribute? (and since section on subroutine lock
didn't mention it.)
2. The output is " A thread exited while 2 threads were running.".
What other 2 threads are there?
3. I didn't understand your comment about "Don't join the main thread
or ourselves ". I understand the main thread part, but aren't we
suppose to join ourselves once the exeuction is done?
Thank you. I am still learning about threads.
jiac.
.
- References:
- Subroutine lock doesn't work for me. Please help
- From: poohc1234
- Re: Subroutine lock doesn't work for me. Please help
- From: Kevin Sproule
- Subroutine lock doesn't work for me. Please help
- Prev by Date: Re: Entirely new idea for a webpage
- Next by Date: Re: Pass output from shell script back to perl
- Previous by thread: Re: Subroutine lock doesn't work for me. Please help
- Next by thread: all but one backspace
- Index(es):
Relevant Pages
|
Loading