Forum Discussion
Altera_Forum
Honored Contributor
14 years agovfork() stalls the calling process until the child calls exec().
So you can use it if you are using pipes (or similar) for communication between different programs, but not if you want to share any data areas. Other options - which may, or may not, be available under any specific *nix. - System V (named) shared memory - threads - mmap(... MAP_SHARED ...) - named pipes/fifos