If I need to share data between processes use threads, if not fork-and-exec.
Threads make it very easy to share data, while fork-execing can be a real hassle when you need communication between the separate processes. Sure you can use named pipes or sockets, but threads are easier to setup.
In reply to Re: Threading vs perl
by zentara
in thread Threading vs perl
by Eyck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |