Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- namespace MoreMethodExercises
- {
- class Program
- {
- static void Main(string[] args)
- {
- Thread t = new Thread(Go);
- t.Start();
- t.Join();
- Thread.Sleep(5000);
- Console.WriteLine("Thread t has ended!");
- Console.ReadLine();
- }
- static void Go()
- {
- for(int i = 0; i < 1000; i++)
- {
- Console.Write("y");
- }
- Console.WriteLine();
- }
- }
- }
Add Comment
Please, Sign In to add comment