Use cases for ithreads (interpreter threads) in Perl and rationale for using or not using them?
The short answer is that they’re quite heavy (you can’t launch 100+ of them cheaply), and they exhibit unexpected behaviours (somewhat mitigated by recent CPAN modules). You can safely use Perl ithreads by treating them as independent Actors. Create a Thread::Queue::Any for “work”. Launch multiple ithreads and “result” Queues passing them the (“work” + own … Read more