for (int i = 0; i < 50; i++)
{
Thread thread = new Thread(MyMethod);
thread.IsBackground = true;
thread.Start();
}
private void MyMethod()
{
while (true)
{
}
}