04-24-2011, 10:25 PM
he sleep methods can it is comptiable with the older system and can we use it with older systeama
|
yield of object in java
|
|
04-24-2011, 10:25 PM
he sleep methods can it is comptiable with the older system and can we use it with older systeama
04-24-2011, 10:26 PM
yield() method pauses the currently executing thread temporarily for giving a chance to the remaining waiting threads of the same priority to execute. If there is no waiting thread or all the waiting threads have a lower priority then the same thread will continue its execution. The yielded thread when it will get the chance for execution is decided by the thread scheduler whose behavior is vendor dependent.
sleep() Based on our requirement we can make a thread to be in sleeping state for a specified period of time. You can use both in the new systems. 0300-9520262 Get solution in 24 hour |cpmputer & internet mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
|
|
« Next Oldest | Next Newest »
|