But sometimes I want shared access to my data, so I've looked at threads.Note that you can still share data if you fork() instead of using threads by using shared memory (well, at least on Unix systems you can). While that is certainly more icky to work with that shared data using threads, threads come with a performance penalty that is severe enough perl doesn't compile with threads enabled unless specifically asked to do so. (It's a penalty paid even if you don't use multiple threads).
In reply to Re: Approaches to concurrency
by JavaFan
in thread Approaches to concurrency
by tex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |