3607 zhouyl 20 0 985m 130m 27m S 6 2.6 2:05.07 chrome
There are six lines
The first line indicates the current time, the system boot time to the current time, and the number of login users. Server Load balancer means that the system runs several processes on average within 1, 5, and 15 minutes. The sma
). the greater the value, the lower the priority;
Virtual size of VSZ process;
Number of RS resident pages;
TTY terminal ID. The question mark indicates that there is no end, that is, the system itself.
STAT process status
D Uninterruptible sleep (usually IO)
R is running and can be crossed in the queue;
S is in sleep state;
T
) during interrupt processing or when the interrupt is returned before the call to schedule (), where the switch_to does a critical process context switchLabel 1 starts running the user-state process y selected in the previous step (where Y has been switched out through the above steps so you can continue from label 1)Restore_all//Recovery siteIret-pop cs:eip/ss:esp/eflags from kernel stackContinue to run u
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
: Modal commands, full screen, dynamic display of process information, by default every three seconds refreshed once M: Based on memory usage, from large to small sort display P: sorted by CPU processing time display T: Sort by run time show L: whether to show open time and average load information m: whether to display memory and swap partition information T: whether to display task volume and CPU information K-PID; end
the CPU for a single process can be viewed as normal, but the CPU load on the entire system may be abnormal. Through the script to the system CPU load constantly monitoring, can be in the abnormal time to send alarms, to facilitate maintenance personnel timely treatment, prevention of accidents. The following function can detect
primarily intended for compatibility with other versions of the WHO command.-i,-u,--idle the last time the user has been working on the system since the logon time, which is often said to be "daze" time.-h,--heading show a row of headings5,w commandThe command is also used to show the user logged on to the system, but unlike who, the W command is more powerful,
start | grep-v stop | sed-n 1 p | awk '{print $1 }''
Echo $ pid
}
Example:
1) source program (for example, find the process ID whose user is root and whose process name is CFTestApp)
The Code is as follows:
PID = 'getpid root cftestapp'
Echo $ PID
2) result output
The Code is as follows:
11426
[Dyu @ xilinuxbldsrv shell] $
3) Result Analysis
As shown in
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
grep uses the basic regular expression syntax, the extended regular expression has a more complete expression specification than the basic regular expression.
View the number of running process names
Sometimes we may need to get the number of processes started on the server. The following function is to check the number of processes running, for example, the process name is CFTestApp.
The Code is as follo
expression.
View the number of running process names
Sometimes we may need to get the number of processes started on the server. The following function is to check the number of processes running, for example, the process name is CFTestApp.Copy codeThe Code is as follows:Runnum = 'ps-ef | grep-v vi | grep-v tail | grep "[/] CFTestApp" | grep-v grep | wc-l
Detect System
1. How to view processes in a drawingGnome-system-monitor2. How to view processes with commandsPS Process Viewing tool-a process running in shell-X does not process the shell re-run-U View Process user-L Display Process details-F
real-time requirements are not stringent.2) preemptive priority scheduling algorithmIn this way, the system also assigns the processor to the process with the highest priority and makes it execute. During its execution, however, as soon as another process with its higher priority arises, the process scheduler immediat
stops the execution of the current process (the one that has the highest priority) and re-assigns the processor to the new highest priority process. Therefore, when this scheduling algorithm is used, the priority pi is compared with the priority PJ of the executing process J whenever a new ready process I is present i
Pipelines are used to communicate between processes on the same machine or between different machines in the same network. You can use anonymous pipelines and named pipelines in. net. Pipeline-related classes are in the system. Io. Pipes namespace .. The essence of pipelines in. NET is the encapsulation of MPs queue-related functions in Windows APIs.
Use an anonymous pipeline to communicate with Parent and Child processes:
An anonymous pipeline is a t
by OS from execution state due to stop or cancel
Hang Up conceptPending: The operating system swapped the process out of memory, which we call a process hang.five-state transitions:Five-state queue model scheduling:The two execution modes of the Process Control process
IntroductionProcess synchronization is an operating system level concept, in the context of multi-channel programs, there are different constraints, in order to coordinate this mutual restrictive relationship, the realization of resource sharing and process collaboration, so as to avoid conflicts between processes, the introduction of process synchronization.Crit
Operating system operating systems process synchronization with semaphore processes synchronization and SemaphoreProcess cooperation: Multi-process work together to complete a taskFrom the paper to the actual: producer −− consumer InstancesSharing data#define BUFFER_SIZE 10typedef struct {...} item;Item Buffer[buffer_size];int in = out = Counter = 0; Note: These
/wKioL1S4y4XBl6C5AAZVIPYytEU388.jpg "title=" Qq20150116162304.png "alt=" wkiol1s4y4xbl6c5aazvipyyteu388.jpg "/> us:user space sy:system ni:nice Value adjustment elapsed time percentage id: Idle percent wa:wait io Percentage of time that the CPU consumes to wait for the IO event to complete hi:hardware interrupt si:soft Interrupt st: Time taken away by the virtual machine 2c. SUMMARY area fields the SUMMARY area fields describing CPU statist
another process with its higher priority arises, the process scheduler immediately stops the execution of the current process (the one that has the highest priority) and re-assigns the processor to the new highest priority process. Therefore, when this scheduling algorithm is used, the priority pi is compared with the
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.