![]() |
|< 1 2 3 >| | ![]() |
25 Einträge, 3 Seiten |
1
2
3
4
5
C:\dev\xxxx>perl nichtlustig.pl
main: 0
- thread: 1
- thread: 2
<stuck!.. hängt und passiert nix mehr..>
QuoteHowever, through heroic efforts, version 5.6 of Perl now implements the fork operation on Windows by cloning a new interpreter object within the same process. That means that most examples using fork in the rest of the book will now work on Windows. The cloned interpreter shares immutable code with other interpreters but gets its own copy of data to play with. (There can still be problems with C libraries that don't understand threads, of course.)
This approach to multiprocessing has been christened ithreads, short for "interpreter threads". The initial impetus for implementing ithreads was to emulate fork for Microsoft systems. However, we quickly realized that, although the other interpreters are running as distinct threads, they're running in the same process, so it would be easy to make these separate interpreters share data, even though they don't share by default.
![]() |
|< 1 2 3 >| | ![]() |
25 Einträge, 3 Seiten |