java - Does a thread invoking, synchronized method, pre-empt another thread using same object but in a non synchronized manner? -
in java, thread invoking, synchronized method, pre-empt thread using same object in non synchronized manner?
also, when thread invoking synchronized method or synchronized block, thread explicitly owns entire object?
in java, thread invoking, synchronized method, pre-empt thread using same object in non synchronized manner?
no, 1 thread (assuming no data-races/race-conditions) knows nothing thread doing outside of synchronization.
also, when thread invoking synchronized method or synchronized block, thread explicitly owns entire object?
if own mean mutual exclusion, no, has ownership synchronized regions.
Comments
Post a Comment