while (true) { } will block forever