Home Common Problem What does it mean when a process is awakened

What does it mean when a process is awakened

Jul 08, 2022 pm 04:50 PM
process process status

A process being awakened means that the process becomes ready. The process status reflects the changes in the execution process of the process. When the process is awakened, it activates the process, which means that it becomes the ready state. It also means that the process has the running conditions and is waiting for the system to allocate a processor for running; but it does not move immediately after entering the ready state. Go to the head of the ready queue, but join the queue at the end of the queue.

What does it mean when a process is awakened

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

A process being awakened means that the process becomes ready.

Process: The basic unit for allocating and managing resources during the execution of concurrently executed programs.

Process status reflects changes in process execution. These states transition as the process executes and external conditions change.

  • In the three-state model, the process state is divided into three basic states, namely running state, ready state and blocking state.

  • In the five-state model, the process is divided into new state, terminated state, running state, ready state and blocked state.

Three-state model

During the entire life of a process from creation to cancellation and death, sometimes it occupies Processor execution, sometimes although it can run, but no processor is allocated, sometimes although there is an idle processor, it cannot be executed because it is waiting for an event to occur. All of this shows that a process is different from a program. It is active and has state. Changing, this can be characterized by a set of states. In order to facilitate the management of processes, generally speaking, at least three different process states must be defined according to different situations during the execution of the process:

(1) Running state: The process occupies the processor and is running.

(2) Ready state: The process has running conditions and is waiting for the system to allocate a processor for running.

(3) Wait state: Also known as blocked state or sleep state, it means that the process does not have running conditions and is waiting for the completion of an event.

Normally, a process will be in the ready state after it is created. During the execution of each process, it must be in one of the above three states at any time. At the same time, during the execution of a process, its state will change. The specific reasons that cause process state transition are as follows:

(1) Running state-waiting state: waiting for resources to be used or an event to occur, such as waiting for peripheral transmission; waiting for manual intervention.

(2) Waiting state - ready state: resources are met or an event has occurred, such as peripheral transmission ending; manual intervention is completed.

(3) Running state - ready state: The running time slice is up, or a higher priority process appears.

(4) Ready state - running state: When the CPU is idle, a ready process is scheduled to be selected for execution.

Five-state model

In an actual system, the state of the process and its transition are more complicated than those described in the previous section. For example, the introduction Special new state (new) and termination state (exit).

The introduction of new state and termination state is very useful for process management. The new state corresponds to the state in which the process has just been created. Creating a process requires two steps. First, create the necessary management information for a new process; then, let the process enter the ready state. At this time, the process will be in a new state. It has not been submitted for execution, but is waiting for the operating system to complete the necessary operations to create the process. It must be noted that the operating system will sometimes delay the submission of newly created processes based on system performance or main memory capacity limitations.

Similarly, the termination of the process also needs to go through two steps. First, wait for the operating system to deal with the aftermath; then, exit the main memory. When a process reaches its natural end point, or an insurmountable error occurs, or it is terminated by the operating system, or by other processes that have the right to terminate, it will enter the termination state. The process that enters the terminated state will no longer be executed, but it will still remain in the operating system waiting for aftermath. Once other processes have completed extracting information about the terminated process, the operating system will delete the process. The specific reasons that cause process state transition are as follows:

(1) NULL one-to-one new state: execute 1 program and create a child process.

(2) New state - ready state: When the operating system has completed the necessary operations for process creation, and the current system performance and memory capacity allow it.

(3) Running state one-by-one termination state: When a process reaches the natural end point, or an insurmountable error occurs, or is terminated by the operating system, or is terminated by other processes with the right to terminate The process ends.

(4) Termination status - NULL: Complete the aftermath operations.

(5) Ready state one-by-one termination state: Not shown in the state transition diagram, but some operating systems allow the parent process to terminate the child process.

(6) Waiting state one-by-one termination state: Not shown in the state transition diagram, but some operating systems allow the parent process to terminate the child process.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What does it mean when a process is awakened. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Explain what the explorer.exe process is Explain what the explorer.exe process is Feb 18, 2024 pm 12:11 PM

What process is explorer.exe? When we use the Windows operating system, we often hear the term "explorer.exe". So, are you curious about what this process is? In this article, we will explain in detail what process explorer.exe is and its functions and effects. First of all, explorer.exe is a key process of the Windows operating system. It is responsible for managing and controlling Windows Explorer (Window

What is the process of com surrogate? What is the process of com surrogate? Sep 14, 2022 pm 02:56 PM

"com surrogate" is the process of "C:\Windows\System32\dllhost.exe"; when this process occurs, it usually means that the "COM+" component stops working. This process takes up a lot of space and even does not respond directly. This is because the computer is loading the file icon. Sometimes a problem occurs, causing the computer to become stuck. You can solve the stuck problem in the computer properties settings.

What kind of process is ccsvchst.exe? What kind of process is ccsvchst.exe? Feb 19, 2024 pm 11:33 PM

ccsvchst.exe is a common process file that is part of the Symantec Endpoint Protection (SEP) software, and SEP is an endpoint protection solution developed by the well-known network security company Symantec. As part of the software, ccsvchst.exe is responsible for managing and monitoring SEP-related processes. First, let’s take a look at SymantecEndpointProtection(

How to properly kill zombie processes in Linux How to properly kill zombie processes in Linux Feb 19, 2024 am 10:40 AM

In Linux systems, zombie processes are special processes that have been terminated but still remain in the system. Although zombie processes do not consume many resources, if there are too many, they may cause system resource exhaustion. This article will introduce how to correctly remove zombie processes to ensure the normal operation of the system. 1Linux zombie process After the child process completes its task, if the parent process does not check the status in time, the child process will become a zombie process. The child process is waiting for confirmation from the parent process, and the system will not recycle it until it is completed. Otherwise, the zombie process will continue to hang in the system. To check whether there are zombie processes in the system, you can run the command top to view all running processes and possible zombie processes. The result of the ‘top’ command can be seen from the figure above in Linux.

There are several states of linux processes There are several states of linux processes Mar 13, 2023 am 10:11 AM

The Linux process has 6 states: 1. R executable state, only processes in this state can run on the CPU; 2. S interruptible sleep state, the process in this state is suspended because it is waiting for a certain event to occur. Suspend; 3. D uninterruptible sleep state, the process is in sleep state, but the process is uninterruptible at this moment; 4. T pause state or tracking state, send a SIGSTOP signal to the process, and it will enter in response to the signal T state; 5. Z zombie state, indicating that a process is about to die; 6. X death state.

Detailed explanation of Linux process priority adjustment method Detailed explanation of Linux process priority adjustment method Mar 15, 2024 am 08:39 AM

Detailed explanation of the Linux process priority adjustment method. In the Linux system, the priority of a process determines its execution order and resource allocation in the system. Reasonably adjusting the priority of the process can improve the performance and efficiency of the system. This article will introduce in detail how to adjust the priority of the process in Linux and provide specific code examples. 1. Overview of process priority In the Linux system, each process has a priority associated with it. The priority range is generally -20 to 19, where -20 represents the highest priority and 19 represents

How to stop Task Manager process updates and kill tasks more easily in Windows 11 How to stop Task Manager process updates and kill tasks more easily in Windows 11 Aug 20, 2023 am 11:05 AM

How to Pause Task Manager Process Updates in Windows 11 and Windows 10 Press CTRL+Window Key+Delete to open Task Manager. By default, Task Manager will open the Processes window. As you can see here, all the apps are endlessly moving around and it can be hard to point them down when you want to select them. So, press CTRL and hold it, this will pause the task manager. You can still select apps and even scroll down, but you must hold down the CTRL button at all times.

Why do processes in Linux sleep? Why do processes in Linux sleep? Mar 20, 2024 pm 02:09 PM

Why do processes in Linux sleep? In the Linux operating system, a process can become dormant due to a number of different reasons and conditions. When a process is in a dormant state, it means that the process is temporarily suspended and cannot continue execution until certain conditions are met before it can be awakened to continue execution. Next, we will introduce in detail several common situations when a process enters hibernation in Linux, and illustrate them with specific code examples. Waiting for I/O to complete: When a process initiates an I/O operation (such as reading