[Moscow.pm] use Thread vs threads
Konovalov, Vadim
Vadim.Konovalov на emc.com
Вт Фев 2 04:56:44 PST 2016
From: Moscow-pm On Behalf Of Ivan Petrov
> >>> Постойте, так треды (threads, потоки) уже давно воткнули в Perl (по
> >>> моему еще с v5.005).
> >>
> >> и они там в статусе experimental и всегда будут в подобном статусе
>
> > Учите историю: были USE5005THREADS до 5.6.0, потом их выпилили где-то в
> > 5.8.+ а в 5.6.0 привнесли USE_ITHREADS - полная реимпленентация но тоже кривая.
>
> > Говорят же - threads deprecated.....
>
> я не понял про историю
А что тут непонятного
C:\>perldoc perl5100delta
...
As the old 5005thread threading model has been removed, in favor of
the ithreads scheme, the "Thread" module is now a compatibility
wrapper, to be used in old code only. It has been removed from the
default list of dynamic extensions.
...
Далее
C:\>perldoc Threads
NAME
threads - Perl interpreter-based threads
VERSION
This document describes threads version 2.02
WARNING
The "interpreter-based threads" provided by Perl are not the fast,
lightweight system for multitasking that one might expect or hope for.
Threads are implemented in a way that make them easy to misuse. Few
people know how to use them correctly or will be able to provide help.
The use of interpreter-based threads in perl is officially discouraged.
Ещё раз: officially discouraged
Подробная информация о списке рассылки Moscow-pm