当前位置:网站首页>priority inversion problem
priority inversion problem
2022-06-13 05:01:00 【Snow * sleet * snow】
Priority reversal
Suppose there is a task at present A,B,C The priorities are 1,2,3( Note that the lower the priority number , The higher the priority ). In this case, if the task with high priority A、B Is pending , Lowest priority task C Running and getting mutex by M Enter the critical zone for treatment . later A、B The task is ready ,A The task has the highest priority, so you get the permission to run , So as to seize C Mission ,A The task operation also needs to obtain the mutex M, At this time, the mutex is found M Has been tasked with C occupy . therefore A The task is suspended in the mutex M On , Can only wait for C Task releases mutex M To run . And then because of B The task is ready , And the priority is higher than the task C, So the mission B Get run , until B After operation , To make the task C Get run ,C Run to release the mutex M after A To run . Thus, the task with the highest priority A Instead, there are no lower priority tasks B Priority is given to the operation , This phenomenon is called priority reversal .
边栏推荐
- metaRTC4.0稳定版发布
- Section 5 - Operator details
- Elliptic curve encryption
- PostgreSQL Guide: Insider exploration (Chapter 7 heap tuples and index only scanning) - Notes
- Advantages of win8.1 and win10
- Kaggle 时间序列教程
- Avantages de win8.1 et win10
- C language learning log 12.14
- Handwritten promise and its method, with detailed notes
- 2021TPAMI/图像处理:Exploiting Deep Generative Prior for Versatile Image Restoration and Manipulation
猜你喜欢
2021tami/ image processing: exploiting deep generative priority for versatile image restoration and manipulation
UNO
Mind mapping series - Database
The games that you've tasted
Embedded hardware - read schematic
C language learning log 11.7
Section 3 - functions
QT direction key to move focus
Ruoyi cloud startup tutorial (hand-held graphics)
QT signal is automatically associated with the slot
随机推荐
On switch() case statement in C language
Shell built-in string substitution
Chinese trumpet creeper
Shell variable learning notes
17.6 unique_lock详解
Mind mapping series - Database
External sort
Chapter 13 abstraction: address space
MySQL8.0.13安装教程(有图)
QT using layout manager is invalid or abnormal
Force deduction 121 questions
What is the saturate operation in opencv
rainbow
Optocoupler working principle function electric parameter application circuit
Advanced C language - Section 1 - data storage
C language learning log 11.7
Explain the role of key attribute in V-for
C # get all callable methods of WebService interface [webmethod]
String()和toString()方法得区别
Four methods for judging JS data types and user-defined methods