concept main loop in category rust
appears as: main loop, main loop

This is an excerpt from Manning's book Rust in Action.
Understanding the main loop
Listing 11. 11. Making use of the
x86_64crate to access thehltinstruction. The instruction is given to the CPU during the main loop of_start()to prevent excessive power consumption. (ch11/ch11-fledgeos-1/src/main.rs)use x86_64::instructions::{hlt};