How do you run a new program as a new process in Linux?

Sơn Lê

Member
How do you run a new program as a new process in Linux?
Answer
In most cases, the fork system call is followed by an exec call in the newly created child process. The use case is like this. A process executes the fork system call, which creates a new child process. The child process, then, exec’s the program to be executed.
 

Tìm kiếm

Back
Top