in reply to Approaches to concurrency
But in perl there are Threads, ithreads, threads, 5005threads
There are only ithreads!
Ignore these and the module that implemented them: Threads.
That is, each system thread runs an independant copy of the interpreter, with all non-explicitly shared variables created by that thread, being confined to that interpreter.
Ie. If you don't explicitly share it, each thread runs (almost) as a separate process would.
To share data between threads, you must use threads::shared also.
The are some other ways also, but enough for now.
|
|---|