1.使用 Windows 系统提供的系统调用创建与撤销线程。
2.使用 Windows 系统提供的线程同步 API 实现多线程同步。
3.使用 Windows 系统提供的线程同步 API 解决实际问题。
新建工程名为:实验四:线程的同步(专业+班级+姓名)
1. 源代码。
// 15 实验四:线程的同步(软件工程 21—6 班 方瀚霖).cpp : Defines the
entry point for the console application.
//
#include "stdafx.h"
#include "15 实验四:线程的同步(软件工程 21—6 班 方瀚霖).h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif