The performance difference is also a winning point for thread over processes.
Excuse me? Perhaps you missed this post by liz discussing Perl's ithreads. Sure, in theory threading might be better than forking, but in practice (in Perl) it is anything but "lightweight" or "fast". And that's not even considering leaks or bugs, that's just considering the current design. I'll stick with fork for concurrent programming on *nix, and one of these days I'll get around to trying out liz's drop-in forks replacement for threads.
In reply to Re: Why use threads over processes, or why use processes over threads?
by Anonymous Monk
in thread Why use threads over processes, or why use processes over threads?
by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |