# Linux Kernel Module Cheat
The perfect emulation setup to study and develop the <<linux-kernel>> v5.9.2, kernel modules, <<qemu-buildroot-setup,QEMU>>, <<gem5-buildroot-setup,gem5>> and x86_64, ARMv7 and ARMv8 <<userland-assembly,userland>> and <<baremetal-setup,baremetal>> assembly, <<c,ANSI C>>, <<cpp,C++>> and <<posix,POSIX>>. <<gdb>> and <<kgdb>> just work. Powered by <<about-the-qemu-buildroot-setup,Buildroot>> and <<about-the-baremetal-setup,crosstool-NG>>. Highly automated. Thoroughly documented. Automated <<test-this-repo,tests>>.

#### 27.3.4. C++ multithreading

- `<thread>`

  - userland/cpp/count.cpp Exemplifies: `std::this_thread::sleep_for`

  - userland/cpp/thread_hardware_concurrency.cpp `std::thread::hardware_concurrency`

  - userland/cpp/thread_get_id.cpp `std::thread::get_id`

  - userland/cpp/thread_return_value.cpp: how to return a value from a thread

- `<atomic>`: C++17 N4659 standards draft 32 "Atomic operations library"

- atomic.cpp

- C++ std::memory_order

- C++ parallel algorithms

- C++17 N4659 standards draft