[ C/C++ ] Window Thread 프로그래밍
·
Archive/Develop
#include #include #include /* run this program using the console pauser or add your own getch, system("pause") or input loop */ unsigned WINAPI ThreadFunc(void *arg); int g_checkid = 0; int main(int argc, char *argv[]) { HANDLE hThread,hThread2; unsigned threadID; int param=5; hThread=(HANDLE)_beginthreadex(NULL, 0, ThreadFunc, (void*)¶m, 0, &threadID); hThread2=(HANDLE)_beginthreadex(NULL, ..