in reply to Approaches to concurrency
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Approaches to concurrency
by BrowserUk (Patriarch) on Feb 09, 2009 at 12:01 UTC | |
by JavaFan (Canon) on Feb 09, 2009 at 13:26 UTC | |
by BrowserUk (Patriarch) on Feb 09, 2009 at 14:44 UTC | |
by perrin (Chancellor) on Feb 09, 2009 at 14:26 UTC | |
by JavaFan (Canon) on Feb 09, 2009 at 15:16 UTC | |
by BrowserUk (Patriarch) on Feb 09, 2009 at 14:48 UTC | |
by wazoox (Prior) on Feb 12, 2009 at 12:34 UTC |