dirCpp/cppTestCmake/src/multipleThread.cpp
static void cpu_waster(void) {
    printf("CPU Waster Process ID: %d\n", getpid());
    printf("CPU Waster Thread ID %d\n", std::this_thread::get_id());
    while(true) continue;
}
// a simple function that wastes CPU cycles "forever"
a simple function that wastes CPU cycles "forever"
a simple function that wastes CPU cycles " forever "
static void cpu_waster(void) {
    printf("CPU Waster Process ID: %d\n", getpid());
    printf("CPU Waster Thread ID %d\n", std::this_thread::get_id());
    while(true) continue;
}
static void cpu_waster ( void ) { printf ( " \n " , getpid ( ) ) ; printf ( " \n " , std :: this_thread :: get_id ( ) ) ; while ( true ) continue ; }
a simple function that wastes CPU cycles "forever"
a simple function that wastes CPU cycles " forever "