In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly analyzes the relevant knowledge points of how to use the nice command in Linux system, the content is detailed and easy to understand, the operation details are reasonable, and has a certain reference value. If you are interested, you might as well follow the editor to have a look, and follow the editor to learn more about "how to use the nice commands of the Linux system".
The nice command in the Linux system executes the program with a changed priority, and if no program is specified, the current scheduling priority is printed.
Syntax nice [- n adjustment] [- adjustment] [--adjustment=adjustment] [--help] [--version] [command [arg...]] Parameter description:
-n adjustment,-adjustment,-adjustment=adjustment all add adjustment to the original priority order.
-help displays a help message
-version displays version information
Instance sets the priority of the program when it is running
# vi & / / background run [1] 15297 # nice vi & / / set the default priority [2] 15298 [1] + Stopped vi # nice-n 19 vi & / / set the priority to 19 [3] 15299 [2] + Stopped nice vi # nice-n-20 vi & / / set the priority to-20 [4] 15300 [3] + Stopped nice-n 19 vi # ps- L / / display process F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S 0 15278 15212 15212-1208 wait pts/2 00:00:00 bash 0 T 0 15297 15278 0 800-2687 signal pts/2 00:00:00 vi 0 T 0 15298 15278 090 10-2687 signal pts/2 00:00:00 vi 0T 015299 15278 1 99 19-2687 signal pts/2 00:00:00 vi 4 T 015300 15278 3 60-20-2687 signal Pts/2 00:00:00 vi 4 R 0 15301 15278 800-625-pts/2 00:00:00 ps [4] + Stopped nice-n-20 vi add 1 to the priority of ls and execute
Nice-n 1 ls increases the priority of ls by 10 and executes
Nice ls Note: priority (priority) is used by the operating system to determine the parameters assigned by CPU. Linux uses the "round-robin" algorithm to schedule CPU. The higher the priority, the more CPU time it is likely to get.
About "Linux system nice command how to use" is introduced here, more related content can search the previous article, hope to help you answer questions, please support the website!
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.