首页 > 试题广场 >

Discuss ways in which the pri

[问答题]

Discuss ways in which the priority inversion problem could be ad-dressed in a realtime system,Also discuss whether the solutions could

be implemented within the context of a proportional share scheduler.

推荐

Answer:The priority inversion problem could be addressed by tem-porarily changing the priorities of the processes involved.Processesthat are accessing resources needed by a higher-priority process inherit the higher priority until they are finished with the resources in ques-tion.When they are finished,their priority reverts to its original value.This solution can be easily implemented within a proportional share scheduler;the shares of the high priority processes are simply trans-ferred to the lower priority process for the duration when it is accessingthe resources.

发表于 2018-05-05 21:00:53 回复(0)