Hi,
I need help in simple threaded solution.
How can I join the active thread?

After I was started the thread I want itto join itself
at the end and go back to the main
Example:

# main program $thr1=new threads \&sub_name; $thr2=new threads \&sub_name; $thr3=new threads \&sub_name; $thr4=new threads \&sub_name; # threaded subroutine sub sub_name{ print ("\nIn the thread!\n"); # here I need help to join this thread after the print }

I need that every started therad will be killed
after finished and thread->list to be updated

Thank you all,
Igor
Please email me to igor.ryaboy@starcore-dsp.com

In reply to Threads in perl by cicbaba

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.