can anyone explain thread monitors wait?
someone during work only asked explanation behind carrying hang wait inside synchronized.
honestly i can't reasoning. i know javadocs say--that thread needs owners object's monitor, nonetheless why? problems does prevent? (and it's indeed necessary, since can't wait slight guard itself?)
i'm looking sincerely in-depth since maybe anxiety an article. i couldn't discerning google.
oh, also, does thread.sleep compare?
edit: good set answers--i unequivocally wish i name some-more since helped me know going on.
Comments
Post a Comment