Process ManagementProcess ProcessesA process opened by an applicationPIDProcess IDType:User space ProcessKernel space ProcessTo view the status of a process statically# PS[[Email protected] ~]# PS>>>> View the process of this terminalPID TTY Time
A process is the unit of resource allocation and independent operation of the operating system. It is generally made up of the following three parts.Process Control blockWhen the process is created, the operating system creates a new PCB structure,
View process
Top
The top command displays in real time the resource usage of each process in the system
Command display:
Top-20:48:18 up 525 days, 4:51, 8 users, load average:2.81, 2.21, 1.78tasks:443 Total,
today's computers use the CPU is generally multicore, and multiple processes running at the same time, a CPU can only run a single instruction, how to implement multiple processes simultaneously running this is an art. Implementing a variety of
1, monitoring the load of the system W View the current system load, detailed display the host running time, the number of logged on users, the system average load information;Uptime view current system load and host running time, simple display;650
Simply list the basic commands and share only my thoughts!based on Linuxkernel is multi-tasking OS,Windows NT Kernel is a single multitasking os,os Kernel features nothing but "connecting" That is, drive hardware, provide system calls for
1. Creation of processesThere are four types of functions that create sub-processes under Linux: System (), fork (), exec* (), Popen ()1.1. System functionsPrototype: #include int system (const char *string); The system function executes the
Reprint Please specify the Source:Jiq ' s technical BlogData:Each processor maintains a running queue, the primary field.Each run queue has two priority queues, one active (time slice not finished ) , and the other is out of date ( time slice is
1.Purpose and requirements1.1. Purpose of the experimentA process scheduler is completed in a high-level language to deepen the understanding of process concepts and process scheduling algorithms.1.2. Experimental Requirements1.2.1 Example: design a
1.Purpose and requirements1.1. Purpose of the experimentA process scheduler is completed in a high-level language to deepen the understanding of process concepts and process scheduling algorithms.1.2. Experimental Requirements1.2.1 Example: design a
Embedded Software test questions ( C language) V1.0following - a choice question, each question may have one or more correct answers, please find all the correct answers in the parentheses corresponding to each question. Multiple selection, wrong
The previous post reviewed the general overview of the operating system-my operating system review-an overview of the operating system, including the definition of the operating system, its evolution, and the structure of the operating system. Next
CPU Metrics1. Indicator Range 1.1 User mode CPU utilization+ System Mode CPU UtilizationReasonable value: 60-85%, if the us+sy time in a multiuser system exceeds 85%, the process may take time to wait in the running queue, the response time and
Linux kernel-Process scheduling1. Multi-tasking# preemptive multitasking: A scheduler to decide what time to stop a process from running# The time slice of the process: the processor time period assigned to each running process2.Linux of process
PS-A List All ProcessesName: PSUsage rights: All usersHow to use: PS [options] [--help]Description: Shows the dynamics of the instantaneous stroke (process)Parameters: The parameters of PS are very many, only a few common parameters are listed here
Interrupts and exception interrupts (interrupt) are typically defined as an event that adapts the order of instructions performed by the processor. Such an event corresponds to an electrical signal generated by the internal external hardware
The PS command is used to monitor the working conditions of the process. The process is a running program that has been in dynamic change while the PS command shows the process working state instantaneously.How to use: Ps[options][-help]Common
4.1 Multi-taskingA multitasking operating system is an operating system that can concurrently interact with multiple processes concurrently.Multi-tasking systems can be divided into two categories:
Non-preemptive multi-taskingThe process
Fourth Chapter process scheduling
The scheduler is responsible for deciding which process to run, when to run, and for how long, and the process scheduler can be seen as a kernel subsystem that allocates a limited amount of processor time
"Linux kernel design and implementation" CHAPTER4 reading notesThe scheduler is responsible for deciding which process to run, when to run, and for how long, and the process scheduler can be seen as a kernel subsystem that allocates a limited amount
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.