Javatpoint Logo
Javatpoint Logo

C# Threading Example: Sleep() method

The Sleep() method suspends the current thread for the specified milliseconds. So, other threads get the chance to start execution.

Output:

0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
Next TopicC# Thread Abort




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA