Build your New Platform For Future
To make a thread wait for some time without wasting operating system resources.
To understand how to pause a thread C# program and use threads in it, perform the following steps :
1. Start Visual Studio 2013. Create a new C# Console Application project.
2. Make sure that the project uses .Net Framework 4.0 or higher version.
3. In the Program.cs file add the following using directive:
4. Add the following code snippet below the Main method:
5. Add the following code snippet inside the Main methods:
6. Run the program.
Copyright © 2017 - All Rights Reserved.