問題詳情
243

Which two statements, inserted independently at both lines 35 and 41, tend to allow both threads totemporarily pause and allow the other thread to execute? (Choose two.)
(A) Thread.wait();
(B) Thread.join();
(C) Thread.yield();
(D) Thread.sleep(1);
(E) Thread.notify();
參考答案