Explain me how to create a child process in linux?
Submitted by: Muhammad☛ Prototype of the function used to create a child process is pid_t fork(void);
☛ Fork is the system call that is used to create a child process. It takes no arguments and returns a value of type pid_t.
☛ If the function succeeds it returns the pid of the child process created to its parent and child receives a zero value indicating its successful creation.
☛ On failure, a -1 will be returned in the parent's context, no child process will be created, and errno will be set.
☛ The child process normally performs all its operations in its parents context but each process independently of one nother and also inherits some of the important attributes from it such as UID, current directory, root directory and so on.
Submitted by: Muhammad
☛ Fork is the system call that is used to create a child process. It takes no arguments and returns a value of type pid_t.
☛ If the function succeeds it returns the pid of the child process created to its parent and child receives a zero value indicating its successful creation.
☛ On failure, a -1 will be returned in the parent's context, no child process will be created, and errno will be set.
☛ The child process normally performs all its operations in its parents context but each process independently of one nother and also inherits some of the important attributes from it such as UID, current directory, root directory and so on.
Submitted by: Muhammad
Read Online Advanced Embedded Systems Job Interview Questions And Answers
Top Advanced Embedded Systems Questions
☺ | Tell me what is the difference between microprocessor and microcontroller? |
☺ | Do you know what is lst file? |
☺ | What is high-end embedded processor? |
☺ | What is interrupt latency? How can you reduce it? |
☺ | What is embedded system in a computer system? |
Top New Artificial Intelligence Categories
☺ | Virtual Assistant Interview Questions. |
☺ | Artificial Intelligence Robotics Interview Questions. |
☺ | AI Fuzzy Logic Interview Questions. |
☺ | Artificial Intelligence Neural Networks Interview Questions. |
☺ | Artificial Intelligence Games Interview Questions. |