1.

What Is The Difference Between Sleep() And Yield()?

Answer»

When a THREAD calls the sleep() METHOD, it will RETURN to its waiting state. When a Thread calls the yield() method, it returns to the ready state.

When a Thread calls the sleep() method, it will return to its waiting state. When a Thread calls the yield() method, it returns to the ready state.



Discussion

No Comment Found