OS L4-HW: Solutions (Scheduling)

 

 

 

 

The homework asks if SRTF will be shorter than SJF and the answers video asks if SJF could be shorter than SRTF.   

  • In both cases, SRTF will always be shorter, however, because I changed the way I asked it, on the Homework, the answer was True and on the solutions video, the answer was False.   This is only because I changed how I was asking the same question.  In both cases, SRTF is shorter.  

 

Waiting Time --> Waiting in the ready quque 

 

 

 

 

 

 

    The answer was P3 because P1 and P2 both get full bursts and only P3 was removed early.

原文地址:https://www.cnblogs.com/JasperZhao/p/14659889.html