17

I know you remember this. (Don't lie 😂)

Comments
  • 2
    Better yet, call it recursively.
  • 2
    void run() {
    cout << "Best Loop!" << endl;
    run();
    }
  • 12
    Please be generous and let others also use the CPU:

    while(true){

    wait(1);

    }
  • 5
    while(true) {
    os.fork();
    }
  • 5
    while(true || false):
    true,false = false,true
  • 3
    There are cases where while true loops are not bad habbit. Dont generalize it
  • 3
    Continous socket polling requires a while true loop also many embedded system require one. So using while true loops are not bad per se
Add Comment