|
Posted by Ted on February 25, 2008, 1:18 pm
Please log in for more thread options On Feb 25, 12:30=A0pm, xhos...@gmail.com wrote:
> > When I first tried creating perl threads, the main process ended after
> > the threads where created but before any of them really started. =A0On
> > reading further, I saw that I had to join the threads so that the main
> > process would sit idle waiting for the threads to finish. =A0So I added
> > statements to join each thread. =A0But now, it looks like the
> > consequence of this is that the code in each thread is executed one
> > after the other, as if it was a single process rather than a set of
> > independantly executing threads.
>
> The problem is in line 42.
>
> Xho
>
> --
> --------------------http://NewsReader.Com/--------------------
> The costs of publication of this article were defrayed in part by the
> payment of page charges. This article must therefore be hereby marked
> advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate=
> this fact.
Will calling 'system' within a thread block all other threads in the
process until it has returned? If so, then that may be where my
problem lies?
If not, then I am puzzled.
Thanks
Ted
|