Professional Documents
Culture Documents
Pipes, Vfork
Pipes, Vfork
Pipes, Vfork
however pipes cannot be used by process that don't have some common ancestry (eg parent-child).
UNNAMED-They are created, used and destroyed within the life a set of processes.
Each end of the pipe has its own file descriptor. One end is for reading and one end is for writing. When you are done with a pipe, it is closed like any other file.
Named pipes
Named pipes are also called FIFOs (first in first out). They have names and exist as special files within a file system. (file type p) They exist until they are removed with rm or unlink() They can be used with unrelated process not just descendants of the pipe creator.
Pipe is unidirectional , but named pipe is bidirectional flow
overwrite the parents data and stack ) which suspends the parent process until the child process exits.
vfork - parent is suspended until child exits or exec's. mainly memory and stack are shared to the child.