concept main loop in category rust

appears as: main loop, main loop
Rust in Action

This is an excerpt from Manning's book Rust in Action.

  • Understanding the main loop
  • Listing 11. 11. Making use of the x86_64 crate to access the hlt instruction. 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};