4 ms·
Yes this is very reminiscent of the interpreter threads model from perl 5.8 (2002) https://perldoc.perl.org/threads.html https://perldoc.perl.org/threads.html
by fanf2 8y ago
Yes this is very reminiscent of the interpreter threads model from perl 5.8 (2002)
https://perldoc.perl.org/threads.html https://perldoc.perl.org/threads.html
- tyingq 8y agoThe warning there is worth pulling up here: "The "interpreter-based threads" provided by Perl are not the fast, lightweight system for multitasking that one might expect or hope for. Threads are implemented in a way that make them easy to misuse. Few people know how to use them correctly or will be able to provide help. The use of interpreter-based threads in perl is officially discouraged." Perl5 also had a similar queue based scheme for sharing data across the interpreters: https://perldoc.perl.org/Thread/Queue.html https://perldoc.perl.org/Thread/Queue.html