2010-03-26 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / tests / main-returns-background.cs
blob024bdafa54158ac0763993d26544681d1f7ae2a5
2 using System;
3 using System.Threading;
5 public class foo {
6 public static void Main() {
7 Thread thr=new Thread(new ThreadStart(foo.thread));
8 thr.IsBackground=true;
9 thr.Start();
10 Thread.Sleep(1200);
11 Console.WriteLine("Main thread returns");
14 public static void thread() {
15 Console.WriteLine("Thread running");
16 Thread.Sleep(500);
17 Console.WriteLine("Thread running");
18 Thread.Sleep(500);
19 Console.WriteLine("Thread running");
20 Thread.Sleep(500);
21 Console.WriteLine("Thread running");
22 Thread.Sleep(500);
23 Console.WriteLine("Thread running");