Member-only story
What is fork()
In Linux, the system call for creating a process is called fork
. To create a new process, an existing process must call fork
. The original process is called the parent process, while the newly created process is called the child process.
Previously, we mentioned that a process runs based on a program, just like a project is executed based on a project execution plan. Suppose an ongoing project is following its plan, but suddenly receives an order to start a new project. What should be done in this situation?
Executing a project is a complex process that involves multiple departments within a company. For example, the Project Management Department needs to set up Jira and Wiki for the project team, while the Meeting Room Management Department needs to allocate a meeting room, and so on.
Usually, we have two ways to handle this:
- Manual Setup: Create a checklist specifying all the accounts and resources needed for each new project team. However, this means that every time a new project is initiated, Jira, Wiki, and other configurations need to be set up from scratch, which is quite tedious.
- Copy & Paste Approach: Instead of configuring Jira for the new project from scratch, programmers often use a more convenient approach — copying an existing setup and…