当前位置:网站首页>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 .
边栏推荐
- Flutter dart variables and constants
- C language learning log 10.4
- metaRTC4.0集成ffmpeg编译
- What is the difference between ROM, ram and flash? SRAM、DRAM、PROM、EPROM、EEPROM
- 【多线程编程】Future接口获取线程执行结果数据
- QT using layout manager is invalid or abnormal
- Chapter 15 mechanism: Address Translation
- JS to realize the conversion between string and array and an interview question
- QT signal is automatically associated with the slot
- LeetCode第297场周赛(20220612)
猜你喜欢
Analysis on the similarities and differences of MVC, MVP and mvvc
Dup2 use
Kaggle 时间序列教程
C language learning log 1.24
Logical point
Elliptic curve encryption
Keil uses j-link to burn the code, and an error occurs: Flash download failed - one of the "Cortex-M3" solutions
The games that you've tasted
metaRTC4.0稳定版发布
Regular expressions in QT
随机推荐
RTSP streaming using easydarwin+ffmpeg
Luogu p1036 number selection
C language learning log 2.19
约瑟夫问题
BM1Z002FJ-EVK-001开机测评
Promise processing JS multithreads get the same processing result after all the results are obtained
Article 29: assuming that the mobile operation does not exist, is expensive, and is not used
Chapter 18 pagination: Introduction
josephus problem
Dup2 use
PostgreSQL Guide: inside exploration (Chapter 10 basic backup and point in time recovery) - Notes
Chapter 15 mechanism: Address Translation
E - Lucky Numbers
Several methods of identifying equivalent circuit of circuit drawing
Force buckle 25 A group of K flipped linked lists
UNO
LeetCode第297场周赛(20220612)
Avantages de win8.1 et win10
CMB written test graphical reasoning
Clause 31: avoid default capture mode