ThreadPool.QueueUserWorkItem : ThreadPool « System.Threading « C# / C Sharp by API






ThreadPool.QueueUserWorkItem

  
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Reflection;
using System.Reflection.Emit;

public class MainClass
{
    public static void Main()
    {
        ThreadPool.QueueUserWorkItem(delegate {
            Console.WriteLine(Assembly.GetCallingAssembly().FullName);
        });
        Thread.Sleep(100);
    }
}

   
    
  








Related examples in the same category

1.ThreadPool.RegisterWaitForSingleObject
2.ThreadPool.SetMaxThreads