Friday, 18 March 2016

How can we pause the execution of a Thread for specific time ?


We can use Thread class sleep() method to pause the execution of Thread for certain time.

Once the thread awake from sleep, it' s state gets changed to runnable and based on thread scheduling, it gets executed.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.