카테고리 없음

[C#] 프로그램 종료시 Thread 자동 종료 시키기

호마 2015. 6. 19. 15:34


Thread 속성 중 IsBackground 을 true로 설정한다.



1
2
3
Thread t = new Thread(Main.MyThread);
t.IsBackground = true;
t.Start();
cs




출처 :


How to kill Thread on exit? http://stackoverflow.com/questions/6062527/how-to-kill-thread-on-exit