multithread(1)

// MultiThread.cpp : Defines the entry point for the console application.
//


#include 
#include 


using namespace std;

DWORD WINAPI Fun1Proc(
  LPVOID lpParameter   // thread data
);

void main()
{
	HANDLE hThread1;	
	hThread1=CreateThread(NULL,0,Fun1Proc,NULL,0,NULL);
	CloseHandle(hThread1);

	Sleep(10);
	cout<<"main thread is running"<

你可能感兴趣的:(计算机网络与多线程)