Whichtwoof statementsaretrue?()A.Itispossibletosynchronizestaticmethods.B.Whenathreadhasyieldedasaresultofyield(),itreleasesitslocks.C.Whenathreadissleepingasaresultofsleep(),itreleasesitslocks.D.TheObject.wait()methodcanbeinvokedonlyfromasynchronizedcont

题目
Whichtwoof statementsaretrue?()

A.Itispossibletosynchronizestaticmethods.

B.Whenathreadhasyieldedasaresultofyield(),itreleasesitslocks.

C.Whenathreadissleepingasaresultofsleep(),itreleasesitslocks.

D.TheObject.wait()methodcanbeinvokedonlyfromasynchronizedcontext.

E.TheThread.sleep()methodcanbeinvokedonlyfromasynchronizedcontext.

F.Whenthethreadschedulerreceivesanotify()request,andnotifiesathread,thatthreadimmediatelyreleasesitslock.


相似考题