new Thread() : Thread « System.Threading « C# / C Sharp by API






new Thread()

  

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime;
using System.Threading;
using System.Runtime.CompilerServices;
using System.Security;
using System.Text;

public class MainClass
{
    public static void Main()
    {
        Thread paramThread = new Thread(ParameterizedWorkerOperation);
        paramThread.Start("Test");

        paramThread.Join();
    }
    private static void ParameterizedWorkerOperation(object o)
    {
        Console.WriteLine("Param worker: {0}", o);
    }
}

   
    
  








Related examples in the same category

1.Thread.Abort()
2.Thread.AllocateDataSlot
3.Thread.AllocateNamedDataSlot
4.Thread.CurrentContext
5.Thread.CurrentCulture
6.Thread.CurrentThread
7.Thread.GetData
8.Thread.GetHashCode()
9.Thread.Interrupt()
10.Thread.IsAlive
11.Thread.IsBackground
12.Thread.Join()
13.Thread.Priority
14.Thread.ResetAbort()
15.Thread.SetData
16.Thread.Sleep
17.Thread.Start
18.Thread.ThreadState