多线程编程基础 发表于 2018-06-20 | 更新于: 2018-06-24 字数统计: 60 | 阅读时长 ≈ 1 123456789101112131415161718192021#include <windows.h>#include <stdio.h>DWORD WINAPI ThreadProc(LPVOID lpParam){ printf("ThreadProc \r\n"); return 0;}int main(){ HANDLE hThread = CreateThread(NULL,0,ThreadProc,NULL,0,NULL); WaitForSingleObject(hThread, INFINITE); printf("main \r\n"); CloseHandle(hThread); return 0;} ------ 本文结束------