当前位置:网站首页>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 .

边栏推荐
- How to lay copper in AD (aluminum designer)
- Mind mapping series - Database
- Clause 34: lambda is preferred over std:: bind
- RuoYi-Cloud启动教程(手把手图文)
- Chapter 14 introduction: memory operation API
- On switch() case statement in C language
- OpenCV中的saturate操作(饱和操作)究竟是怎么回事
- What is the saturate operation in opencv
- Sampo Lock
- Solution to sudden font change in word document editing
猜你喜欢

RTSP streaming using easydarwin+ffmpeg

Draw a hammer

QT brushes and brushes

Bm1z002fj-evk-001 startup evaluation

BM1Z002FJ-EVK-001开机测评

Analysis on the similarities and differences of MVC, MVP and mvvc

RMQ、LCA

Simple sr: Best Buddy Gans for highly detailed image super resolution Paper Analysis

Section 4 - arrays

Spread your wings and soar
随机推荐
Flex布局自适应失效的问题
自动评教脚本使用的配置
Keil uses j-link to burn the code, and an error occurs: Flash download failed - one of the "Cortex-M3" solutions
Section 4 - arrays
C language learning log 1.24
135. distribute candy
Section 2 - branch and loop statements
Clause 30: be familiar with the failure of perfect forwarding
Promise processing JS multithreads get the same processing result after all the results are obtained
Analysis on the usage, response and global delivery of provide/inject
约瑟夫问题
[leetcode]- sliding window
MySQL8.0.13安装教程(有图)
C language learning log 1.16
Clause 31: avoid default capture mode
[leetcode]- binary search
String()和toString()方法得区别
OpenCV中的saturate操作(饱和操作)究竟是怎么回事
Force buckle 92 Reverse linked list II
C language learning log 10.4