01-06-15 20.46, skrev Krishna Kumarakalva p� [EMAIL PROTECTED] f�ljande:
> Hello,
> Could someone share there views about Threads in perl. If I understood
> correctly, Threads are available in 5.005 Version and iThreads are available
> in 5.6 Version??.
> I get the following error when I compile a code that uses thread.pm under
> 5.6 Version.
> "This perl was built for "ithreads", which currently does not support
> Thread.pm.
> Run "perldoc Thread" for more information at threads.pl line 2."
>
> also, would you recomend use of 5.005Version Thread.pm in production code??
>
>
> thank you in advance.
>
> Kris.
>
>
>
>
>
Thread.pm is an interface for 5.005 threads.
fork() and threads.pm is an interface to ithreads which is the new threading
module to perl. ithreads will work better for 5.8 release of perl coming
RSN.
I would not suggest using 5005 threads for production code, I am not entirly
sure I would with ithreads today either, but bugs in ithreads will be taken
care of and fixed asap, not so with 5005 threads.
Artur