while(true){ socket = accept(); handle(socket) } while(true){ socket = accept(); new thread(socket); }