search
HomeBackend DevelopmentPHP ProblemFrom a programmer's perspective, what are the 3 process states?

From the perspective of a programmer, there are three states in the process.

1. In progress

The process is running or waiting to be executed.

2. Suspend (also called stop)

Temporary suspension, such as executing sleep(), wait() functions, etc. Continue to run the process until the SIGCONT signal is received.

3. Terminate

The process has ended forever and is waiting for recycling by the parent process or has been recycled. Execute the exit function in common code, or press ctrl c under cli.

Note: Some children may think that "'s are waiting to be run in the running state" and "suspended". What is the difference?

Answer:

The suspended state is when a signal is received, such as SIGSTOP, SIGISTP, etc., and it becomes suspended state. During this period, it will not be executed by the kernel until the SIGCONT signal is received to continue executing the process. It tells the kernel brother, I am still waiting for the "SIGCONT signal" notification, and the kernel cannot schedule me yet. And "waiting to be run in the ongoing state" is the process telling the kernel brother that I am ready, and you can schedule me at any time.

Original address: https://learnku.com/articles/70147

The above is the detailed content of From a programmer's perspective, what are the 3 process states?. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:learnku. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software