Operating system intuitive idea L8 CPU + L9 management of multi-process image (Netease open class) + laboratory building Experiment 4

Management will manage multi-CPU process image

 

 

 

 

 

 

 

 There IO instruction: instruction time is only calculated ratio: about 10 ^ 6: 1

Then the CPU will be the following:

 

 At this time, CPU utilization is 50%

And more generally, it is generally 30-50 instruction calculation instruction, and the CPU utilization is 0

 

 

 

 Multi-channel program, performed alternately management is the core of the CPU

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

schedule () function is very important

getNext () function returns the scheduling

 

 

 

 

 

 

This code must be written in assembly

 

 

 

 

 Memory management is actually a multi-process image services

 

 

 

 

 


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reference Test Report:

 https://www.shiyanlou.com/courses/reports/1320552/

https://www.shiyanlou.com/courses/reports/1348636/

Guess you like

Origin www.cnblogs.com/JasonPeng1/p/12110112.html