I am new to c# i know whats are the threads but i cant really explain following example.
static void Main()
{
    new Thread(new ThreadStart(test))
    {
        IsBackground = true
    }.Start();
}
static void test()
{
    while (true)
    {
        Console.WriteLine("Threads: ");
    }
}
Here my program doesnt spam.
When i tried to use
static void Main()
{
    test();
}
static void test()
{
    while (true)
    {
        Console.WriteLine("Threads: ");
    }
}
Now loop never ends.Why? When i use threads loop is not infinity. Sorry for my bad english
 
     
    