![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Trying to Understand the Discouragement of Threadsby Corion (Patriarch) |
on Nov 18, 2014 at 11:58 UTC ( #1107559=note: print w/replies, xml ) | Need Help?? |
I haven't used it, but I think threads::lite does just that, spawn a mostly separate interpreter with a fresh (OS) thread. It also sets up some communication channels between the main thread and the new thread, but it shares nothing. Judging from the caveats in the documentation, loaded modules stay loaded, but all local namespacess with imports seem to be wiped. So it's not a completely clean interpreter but roughly equivalent.
In Section
Seekers of Perl Wisdom
|
|