Does fork copy code?

Does fork copy code?
Answer
In Unix, all processes are created with the system call fork(). It creates a new process which is
a copy of the calling process. … That means that it copies the caller’s memory (code, globals, heap and stack), registers, and open files.
 

Tìm kiếm

Back
Top