| 1 | NOTE: This documentation describes the style of threading that was
|
|---|
| 2 | available in Perl 5.005. Perl 5.6.0 introduced the early beginnings of
|
|---|
| 3 | interpreter-based threads support, also known as ithreads, and in Perl
|
|---|
| 4 | 5.8.0 the interpeter threads became available from perl level through
|
|---|
| 5 | the threads and threads::shared modules (in Perl 5.6 ithreads are
|
|---|
| 6 | available only internally and to XS extension builders, and used
|
|---|
| 7 | by the Win32 port for emulating fork()). As of Perl 5.8.0, ithreads has
|
|---|
| 8 | become the standard threading model for Perl.
|
|---|
| 9 |
|
|---|
| 10 | If you really want the older support for threads described below,
|
|---|
| 11 | it is enabled with:
|
|---|
| 12 |
|
|---|
| 13 | sh Configure -Dusethreads -Duse5005threads
|
|---|
| 14 |
|
|---|
| 15 | Be warned that the old 5.005 implementation of threads is known
|
|---|
| 16 | to be quite buggy, and unmaintained, which means that the bugs
|
|---|
| 17 | are there to stay. (We are not mean by not fixing the bugs:
|
|---|
| 18 | the bugs are just really, really, really hard to fix. Honest.)
|
|---|
| 19 |
|
|---|
| 20 | The rest of this document only applies to the use5005threads style of
|
|---|
|
|---|