3 perlthrtut - tutorial on threads in Perl
7 B<NOTE>: this tutorial describes the new Perl threading flavour
8 introduced in Perl 5.6.0 called interpreter threads, or ithreads
9 for short. There is another older perl threading flavour called
10 the 5.005 model, unsurprisingly for 5.005 versions of Perl.
12 You can see which (or neither) threading flavour you have by
13 running C<perl -V> and look at the C<Platform> section.
14 If you have C<useithreads=define> you have ithreads, if you
15 have C<use5005threads=define> you have 5.005 threads.
16 If you have neither, you don't have any thread support built in.
17 If you have both, you are in trouble.
19 This document is unfortunately rather sparse as of 2001-Sep-17.
21 In the meanwhile, you can read up on threading basics (while keeping
22 in mind the above caveat about the changing threading flavours) in
29 L<perlothrtut/What Is A Thread Anyway?>
33 L<perlothrtut/Threaded Program Models>
37 L<perlothrtut/Native threads>
41 L<perlothrtut/What kind of threads are perl threads?>
46 L<perlothrtut/Threadsafe Modules>
50 When C<perlothrut> reaches L<perlothrtut/Thread Basics> is when
51 you should slow down and remember to mentally read C<threads>
52 when C<perlothrtut> says C<Thread>. The C<Thread> was the old
53 5.005-style threading module, the C<threads> is the new ithreads
54 style threading module.
56 For more information please see L<threads> and L<threads::shared>.