未分类题
Whichtwoof statementsaretrue?()
A.Itispossibletosynchronizestaticmethods.
B.Whenathreadhasyieldedasaresultofyield(),itreleasesitslocks.
C.Whenathreadissleepingasaresultofsleep(),itreleasesitslocks.
D.TheObject.wait()methodcanbeinvokedonlyfromasynchronizedcontext.
E.TheThread.sleep()methodcanbeinvokedonlyfromasynchronizedcontext.
F.Whenthethreadschedulerreceivesanotify()request,andnotifiesathread,thatthreadimmediatelyreleasesitslock.
【参考答案】
A, D