프로그래밍/C#
parameter를 가진 method를 thread로 등록할 때 parameter를 넘겨주는 방법
tother
2014. 10. 24. 18:01
실제 만들어 테스트 해본 결과 쓰레드 함수의 파라미터의 타입은 반드시 object 여야 하는 것 같다.
Thread t1 = new Thread(threadMethod);
t1.Start(10);
.
.
.
public void threadMethod(object param)
{
}
참고 : http://msdn.microsoft.com/ko-kr/library/vstudio/1h2f2459(v=vs.100).aspx