2014/02 썸네일형 리스트형 [프로그래밍] thread 종료되지 않는 문제 thread를 사용하다 프로그램 종료시 프로그램이 제대로 종료가 될때가 있고 종료가 되지 않아 디버깅을 해보니thread가 종료되지 않아 프로그램이 종료 되지 않는것이였다.그럼 왜 thread가 종료되지 않는지 원인을 찾아보니 UI Handle이 모두 반환된후에 thread에서반환된 Handle을 사용하게 되면 thread가 stuck되는 문제가 발생하였다.해결은 thread에서 UI Handle을 사용하지 않도록 하여 해결했지만 thread를 많이 사용해보지 않아삽질이 많이 했던듯 싶다. 더보기 [프로그래밍] 각종 난수 발생 함수 링크 일반적으로 사용하는 rand() 는 uniform한 난수를 발생시킨다.normal distribution이나 exponential distribution ... 등이 필요하면 아래 사이트에서 참고하여 작성하면 되겠다.http://www.pamvotis.org/vassis/RandGen.htm#include #include #include #include //Note: float variables are used. If you want to generate integer variables, just change the//return type of the function and all other types which are related to the result...float Constant(float me.. 더보기 이전 1 다음