多核编程与并行计算
实验四:
// exa4.cpp : Defines the entry point for the console application. //
#include "stdafx.h"
#include <windows.h>
#include <process.h>
#include <iostream>
#include <fstream>
using namespace std;
HANDLE evRead, evFinish;
void ReadThread(LPVOID param)
{
}
void WriteThread(LPVOID param)
{
}
int main(int argc , char * argv[])
{ cout<<"Writing"<<endl; SetEvent (evRead); WaitForSingleObject (evRead ,INFINITE); cout<<"Reading"<<endl; SetEvent (evFinish);