mirror of
https://github.com/Relintai/programming_tutorials.git
synced 2025-05-13 23:02:12 +02:00
22 lines
344 B
C#
22 lines
344 B
C#
using System;
|
|
using System.Threading;
|
|
|
|
|
|
class Program
|
|
{
|
|
static void ThreadFunc() {
|
|
Console.WriteLine("Thread! ");
|
|
}
|
|
|
|
static void Main(string[] args)
|
|
{
|
|
//paraméterhez: ParameterizedThreadStart
|
|
Thread t = new Thread(new ThreadStart(ThreadFunc));
|
|
t.Start();
|
|
|
|
|
|
|
|
t.Join();
|
|
}
|
|
}
|