Sir pleas make videos on java algorithm also asked in interviews.
@vidyaramesh85353 жыл бұрын
Thank u sir...
@santhosh2855 жыл бұрын
Hi, what is difference between yield and sleep methods, both methods pauses current thread execution.
@0brajeshsharma4 жыл бұрын
Yield method force a thread to wait for other thread of the same priority to be executed first then the current thread will run but in case of Sleep method, current does not release the lock for other thread. It means current thread will be in sleeping mode but no other thread will executive within that time and once it completes in sleeping time it will directly go into runnable state.