Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Threading;
- namespace systrid
- {
- class Program
- {
- static void Main(string[] args)
- {
- Thread watek = new Thread(robPrace);
- watek.Start("Plasuje");
- for (int i = 0; i < 100; i++)
- {
- Console.WriteLine("Main");
- Thread.Sleep(100);
- }
- Console.ReadKey();
- }
- private static void robPrace(object obj)
- {
- string txt = obj.ToString();
- for (int i = 0; i < 100; i++)
- {
- Console.WriteLine(txt);
- Thread.Sleep(100);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement