What is a child process?

What is a child process?

Although it may sound like something out of a parenting handbook or a psychological journal, the term child process actually has nothing to do with human development. If you run a Unix or Linux dedicated server, you have likely encountered child processes without even knowing it. Therefore, it is good to know what child processes are and how they work.

A child process is a process created by another process. The creator process is properly called the “parent process”. The benefit of a child process is that it can start or stop at will without affecting the parent process. The child process is, however, is typically dependent on the parent process. If the parent process dies, the child process becomes an orphan process.

In normal server operations, the kernel may initiate child processes, and other programs, such as Apache, may have them as well. Apache creates child processes (or children, if you prefer) whenever the number of requests (web page accesses from users) exceeds the maximum allowed number of requests. When the maximum number of child process requests is exceeded, another child process spawns.

To view all running processes along with their child processes in a “tree” format, use the following command:

$ ps axf        

For more information about child processes, see this?documentation.

要查看或添加评论,请登录

Hassan Juma的更多文章

  • Type annotation for A strongly and dynamically typed Python.

    Type annotation for A strongly and dynamically typed Python.

    Python is a dynamically-typed language. That means that variable types are dynamically set at run-time, upon assignment…

  • REST API

    REST API

    REST API is a software architectural style for Backend. REST = “REpresentational State Transfer”.

  • Data Profiling with its Benefits, Best Practices & Tools

    Data Profiling with its Benefits, Best Practices & Tools

    What is the importance of data to a business? Good data is the core of most effective business decisions and…

  • Containers and Containerization

    Containers and Containerization

    What containers really are and why do we need them? Containers are a solution to the problem of how to get the software…

  • Server Monitoring

    Server Monitoring

    What do we really mean by Server Monitoring? Cloud service providers like Amazon Web Service (AWS), Google Cloud and…

  • Monitoring

    Monitoring

    Just as the heart monitor in a hospital that is making sure that a patient’s heart is beating and at the right beat…

  • Web stack debugging

    Web stack debugging

    Intro Debugging usually takes a big chunk of a software engineer’s time. The art of debugging is tough and it takes…

社区洞察

其他会员也浏览了