Pages

Oct 19, 2018

What is difference between wait(), sleep() and yield() method in Java


All three are used in some what related but there are subtle difference between them. sleep() is used to pause the thread for short duration, wait() is used to pause thread for a duration or some other thread notifies it, mostly used in inter thread communication. Yield() is used to relinquish the CPU from current thread so that another thread could get an opportunity to grab thread.






http://feeds.dzone.com/~r/dzone/frontpage/~3/afzDTxxQwhw/what_is_difference_between_wait_sleep_and_yield_m.html

QuickBooks Self-Employed

Bigger tax refunds. Better organization. Manage your deductions with QuickBooks Self-Employed .