In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly talks about "what are the methods of Fedora process management". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the methods of Fedora process management.
Multitasking is reflected by multiple processes in a computer system, and each task or job is completed by multiple related processes. When a user enters a command on the command line to execute a program, Fedora process management creates one or more processes for the program.
Process management
Fedora 6 is a multi-user, multi-tasking operating system. Multi-user means that multiple users can use the computer system at the same time; multi-tasking means that Fedora process management can perform multiple tasks at the same time, that is, performing another task before it is finished. Those multiple processes running in the system at the same time can be either system processes, user processes, or virus processes running quietly. Doing a good job of process management is also one of the important ways to ensure that the system maintains a better overall performance.
Understanding process
A process performs specific tasks in the operating system, which is an entity that changes with the execution of the program. There is a difference between a process and a program: a process is not equal to a program, it is generated by a program; a program is a static set of instructions that does not occupy the running resources of the system. A process is a dynamic, dynamic, executing program that can change at any time.
Multitasking is reflected by multiple processes in a computer system, and each task or job is completed by multiple related processes. When a user enters a command on the command line to execute a program, Fedora process management will create one or more processes for the program, which divide and cooperate with each other to complete the tasks to be completed by the program, and each process is an independent unit that can be independently scheduled and executed concurrently with other processes.
The process will use the resources in the system during its life cycle. It uses the CPU in the system to execute instructions, stores instructions and data in physical memory, opens and uses files using the functions provided by the file system, and uses physical devices directly or indirectly. Fedora process management must track each process and resources in the system in order to achieve a reasonable allocation of resources between processes. If one process in the system monopolizes most of the physical memory or CPU usage time, it will affect other processes in the system.
Fedora process management adopts the method of time-sharing management so that all processes can execute concurrently (when there is only one CPU in the computer system, the concurrent execution of processes means that multiple processes execute at the same time, microscopically, the processes are executed alternately) and the resources in the system can be shared. That is, Fedora divides the CPU working time into very short time slices and allocates it to each process in turn. If a process has not finished executing after the time slice allocated to it has been used up, or if the system resources required by the process have not been obtained, the process will be temporarily interrupted and wait for the next round of execution to continue. In this case, CPU is allocated to other processes, so that CPU is fully utilized. Multiple processes in the system are executed concurrently.
Processes in the Fedora process management system can be divided into three categories:
◆ interactive process: an interactive process is a process started by shell, which can be run either in the foreground or in the background.
◆ batch process: this type of process is not associated with the terminal, it is a sequence of processes.
◆ daemon: a daemon is a process that starts with the Fedora process management and runs in the background; this type of process is usually a service in Linux, such as httpd (Web server), crond (scheduled task), and so on.
Start the process
The execution of a program or command is actually achieved through a process. Usually, the program or command is saved on the hard disk, when the file name or command of an executable program is entered in the command line and the Enter key is pressed, the Fedora process management kernel loads the related code of the program or command into memory to start execution; Fedora process management will create one or more related processes for the program or command and complete specific tasks through the process. There are two ways to start a process, which are foreground startup mode and background startup mode.
Start the process in the foreground
Enter a Linux command on the command line of the terminal window and press enter to start a process in the foreground mode. For example, by executing the "find /-name myfile.txt" command on the terminal window, a process is started in the foreground manner. When the process is not finished, press the Ctrl+z key combination to temporarily suspend the process, and then use the ps command to view information about the process.
At this point, I believe you have a deeper understanding of "what are the methods of Fedora process management". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.