ok, somewhere deep inside it reveals that "fork" have more to clone on windows, threads.xs is 5% simpler to initialize, and also there is some RTFS chunk of code that makes great difference between them.
good.
Still, there is one huge common in them,
I think this is larger common thing, as opposed to some implementation differences.
Actually this unfortunate design has its historical explanations - there were 5005THREADS, which were developed in pre-5.6.0 perl and were designed to be lightweight.
this stuck, fo rsome reasons, and 'ithreads' were added quickly as easier solution
And this mean - perl have not efficient threads.
You could still have usage of them to have a load on multiple CPUs, but perl is just not the right tool for the task, it is not efficient when we're talking about threads.
Do you know how this threading is done in Python and Ruby, BTW?
(I do not know, but may be you do?)
PS: I use win32 perl more often than Linux one, although both are quite often.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.