xv6-riscv
xv6-riscv copied to clipboard
Fix high CPU usage
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.