[Linux] Linux system (process management) and linux System Process Management
Process: When we run a program, Linux creates a special environment for the program, including all the resources for running the program. This environment is called a
want to load multiple programs concurrently in the computation to execute concurrently. As a result, these programs, which exist simultaneously in computer memory, are called processes. the advent of the process allows each user to feel themselves in the exclusive CPU. Therefore, it can be said that the process is to implement multi-channel programming on the CPU concept, as shown in.The
manager.This is a session management subsystem that starts user sessions. Threads) and set system variables. After it starts these processes, it waits until Winlogon or CSRSS ends. If these processes are normal, the system will shut down. If something unexpected occurs, smss.exe will stop the system from responding (that is, suspending ).
Spoolsv.exeThis
How to solve the problem of no response from the system process ?, System Process
If the system process does not respond, it indicates that there is a problem in the mobile phone system
1 minute, 5 minutes, and 15 minutes ago to the present.
What is the standard of this load? it seems that everyone's statement is not consistent. some say that the number of CPU cores cannot exceed. if it exceeds, the load will be high.
It is also said that the three values are divided by 3 and cannot exceed 0.6. if the value is greater than, the load is high. what kind of standards can only be observed on the server? You can also discuss this issue.
The content of the second action
that exist simultaneously. *, viruses, etc. are also often loaded through this process, so that its process name and program name are different.
②explorer.exe: Resource Manager, our common desktop, taskbar, etc. is managed by it.
③winlogon.exe: Management user Login, is in the system loading, the role is to ensure that users can log on to the
balance the response with a turnaround.Therefore, the goal of the process scheduling is to achieve the minimum average response time, the maximum system throughput rate, to keep the system's various functional components are busy and provide some kind of seemingly fair mechanism .
PS: Why do you want to keep all of the system's functional parts busy? Because the CPU is very expensive, leaving it
First, prefaceThe various modules of the operating system have been introduced before, and now we will learn more about process management in the operating system.Ii. Basic concepts of the processIn systems that do not have an OS configured, the program executes sequentially, that is, one program must be executed before another program is allowed to execute, and in a multi-channel program environment, multi
wait I/O.
Solving method
L Exchange Technology: a part of the temporarily unable to run the process (blocking the process) to the external memory (only the program and data, the PCB does not change out), to make room for space, can invoke a new process to execute.
• Virtual Storage technology: Each process can only lo
running, hibernating, stopping, or ossified (a rigid state is when the process is complete, but the parent process is not responding).The third line shows the CPU's summary information. Top divides CPU utilization into several types of output based on the owner (user or system) of the process and the state of the
process, processor idle: I/O speed is much slower than processor speed, may occur all process blocking wait I/O
Workaround
Swap technology: Swap out part of the process to external memory to free up memory space
Adopt Virtual Storage technology: Each proce
What is a daemon process? The daemon (Daemon process), which is usually called the Daemon process (daemon), is the background service process in Linux. It is a long-lived process, usually independent of the control terminal and periodically performs some sort of task or wait
actionsResponse time is faster and average latency is lower than 50~150msTypical interactive programs: shell, text editing programs, graphics applications, etc.The scheduling algorithm related code in the kernel uses a policy pattern similar to Ood.2, the timing of process scheduling
Interrupt processing (including clock interrupts, I/O interrupts, system calls, and exceptions), call schedule () d
The transition of the experiment eight process and the general execution process of the system20135114 Wang Zhaoxian Original works reprint please indicate the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000First, process switching key code SWITCH_TO analysis 1.1 process sche
respective memory is split and controlled by the operating system, which is much more efficient than one program exclusive memory and one queue into memory.Other resources for space reuse also have disks, and in many systems, one disk saves files for many users at the same time. Allocating disk space and documenting who is using which disk block is a typical task for operating system resource management.Th
parallel execution on multiple processors. When a process is not introduced, only two programs that belong to one application can be executed sequentially. By introducing a process to create a process for multiple programs in memory, they can execute concurrently, greatly improving system resource utilization and
signals, such as keystrokes. The user, kernel and process can generate send signal: (1) The user presses the interrupt combination key "Ctrl" + "C", the terminal driver receives the input character, and calls the signal system, the signaling system sends the SIGINT signal to the Shell,shell to send it to the process,
scheduling timing of processes and switching of processesThe principle of operating system describes a large number of process scheduling algorithms, these algorithms from the perspective of implementation is only to choose a new process from the run queue, the process of selecting the use of different strategies.It is
Week 8 process switching and general execution of the system "20135239 original please specify the source" Linux kernel Analysis "MOOC course http://mooc.study.163.com/course/USTC-1000029000" one, Timing analysis of process scheduling and process scheduling
The principle of operating
First, process switching key code SWITCH_TO Analysis 1. Progress of process and timing analysis of process scheduling
Interrupt processing (including clock interrupts, I/O interrupts, system calls, and exceptions), call schedule () directly, or call schedule () based on the need_resched tag when returning to t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.