Process creation of experiment two of Linux operating system experiment series

1. The purpose of the experiment
1. Grasp the concept of the process and clarify the meaning of the process
2. Recognize and understand the essence of concurrent execution

2. Experimental content:
Write a program and use the system call fork() to create a child process. When this program is running, there is a parent process and a child process activity in the system. Let each process display a character on the screen: the parent process displays'a', and the child process displays the character'b'. Try to observe the results displayed on the record screen and analyze the reasons.

3. Experimental environment
Linux operating system

Fourth, the experimental process and operating results
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_43372169/article/details/110521205