In Linux, how does one system adopt two policies for thread priority?
Source: Internet
Author: User
In Linux, how does one system adopt two policies for thread priority? -- Linux general technology-Linux technology and application information. For details, refer to the following section. Daniel P. Bovet, the third edition of Linux kernel, says: Real-Time threads are 1-99, with 1 level reaching 99.
However, another argument is that the kernel uses the priority of more than 1000 threads as the priority value during scheduling-which corresponds to the lowest level 1 (Baidu article "Linux Thread Scheduling", three Scheduling Policies for Linux kernel)
The actual test is as follows: create two real-time threads 90 and 91, where 90 is in the while endless loop, and 91 is then in the while LOOP, sleep for Ms before running, level 91 threads can seize level 90. why.
The smaller the number of a common thread, the lower the priority. How can a system adopt two policies?
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.