mit-pdos / xv6-riscv

Xv6 for RISC-V
Other
6.58k stars 2.38k forks source link

Fix high CPU usage #174

Open meighti opened 1 year ago

meighti commented 1 year ago

Use 'wfi' instruction, if no runnable process is found. This should decrease CPU usage significantly when all processes are in idle state, specifically when more than one CPU use assigned to the virtual machine in QEMU.

Related to issue #15