minosproject / minos

Flexible Virtualization Solution for Embedded System
http://minosproject.org
GNU General Public License v2.0
246 stars 93 forks source link

[quesion]What scheduling way are used? #56

Open wjhtinger opened 2 years ago

wjhtinger commented 2 years ago

Just like two OS share a core, how to schedule them? based on time slice?

lemin9538 commented 2 years ago

For sharing mode :

1 - First based on the vcpu's priority。Currently support 8 prioritys. 2- If the priority is same, will based on time slice.

wjhtinger commented 2 years ago

priority is same, will based on time slice.

The hypervisor don't know the guest OS how to run in details, so how to schedule the guest OS by priority? When a high priority guest OS occupy cpu, when will release them?

lemin9538 commented 2 years ago

Just like an RTOS, the high priority task will always run if he do not drop the cpu. Once the vcpu drop the cpu(eg WFI), the lower task will run.

wusnga8dn commented 1 year ago

Just like two OS share a core, how to schedule them? based on time slice?

Hello, I would like to ask, did you have this project up and running, what version of the Raspberry Pi system is used?