Last active
April 12, 2016 10:11
-
-
Save tpdns90321/dda15bcf9c1a9e7ccdb2c9d3652a799c to your computer and use it in GitHub Desktop.
C# Thread Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
namespace FuncSleep{ | |
class Program{ | |
void FuncA(){ | |
System.Threading.Sleep(1000); | |
Console.WriteLine("Hello, World"); | |
} | |
void Main(string[] args){ | |
Thread T = new Thread(FuncA); | |
T.Start(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment