15,466
社区成员
发帖
与我相关
我的任务
分享
#include "windows.h"
#include "stdio.h"
DWORD WINAPI fun1(
LPVOID lpParameter
);
int main(int argc, char* argv[])
{
HANDLE hTread = CreateThread(NULL,0,fun1,NULL,0,NULL);
printf("Main fun run!\n");
int y=0;
for(int x=0;x<1000000;x++)
y++;
return 0;
}
DWORD WINAPI fun1(
LPVOID lpParameter
)
{
//int i=100;
while(true)
printf("fun1 run\n");
return 0;
}