搜索资源列表
ThreadDemo1
- 一个简单的多线程卖票程序,可以手动设定休息时间(sleep),默认为10000ms自动转入睡眠-A simple multi-threaded procedures such as selling a ticket, you can manually set the time to rest (sleep), defaults to 10000ms automatically into sleep
maipiao
- 一个简单的多线程卖票程序,VC6编写,默认为10000ms自动转入睡眠,可改成手动-A simple multi-threaded procedures such as selling a ticket, VC6 prepared automatically defaults to 10000ms sleep, can be changed manually
jinchengguanli
- 1.掌握进程的概念,明确进程的含义 2.认识并了解并发执行的实质 3.掌握进程另外的创建方法 4.熟悉进程的睡眠、同步、撤消等进程控制方法 5.进一步认识并发执行的实质 6.分析进程竞争资源的现象,学习解决进程互斥的方法 -1. To grasp the concept of the process, clearly the meaning of the process 2. Know and understand the essence of concurrent e
CEvent
- VC++使用CEvent类编程创建线程:声明线程函数、定义全局变量m_Sec、定义线程句柄、创建线程1和2、关闭线程句柄对象、程序睡眠10秒、输出变量、设置事件对象为有信号状态、跳出循环等。-VC++ programming to create threads using CEvent class: Statement thread function, which defines global variables m_Sec, the definition of the thread handl
c_CMutex
- 使用CMutex 类实现线程同步,将了解到声明线程函数,定义全局变量m_Sec,程序睡眠10秒,锁定临界区,对临界区进行解锁,输出变量等知识点。 -Use CMutex class implements thread synchronization, thread function declaration will learn to define global variables m_Sec, program sleep for 10 seconds, lock the critical a
20110407-05-_MutexObject
- C++ 创建线程互斥对象的实例源码下载,声明线程函数,创建线程,程序睡眠,释放互斥对象,设置事件对象为无信号状态,生成控制台程序,仅供参考。-C++ to create an instance of the thread mutex source download, declare the thread function, create a thread, the program sleep, release the mutex object, set the event object to n
worker3
- 使得多个线程同时工作,使用睡眠函数sleep 临界区等-Allows multiple threads simultaneously
sleepingBarber
- 使用多线程方法模拟互斥量下的两个理发师的睡眠理发师问题,用于操作系统实验,代码中默认椅子数为2-Using the thread and mutex, samephore to solve the sleeping barber problem with two barbers.
睡眠理发师
- 一个理发师服务多位顾客,定义信号量来进行线程间的同步,是否开门营业,给顾客理发,顾客离开,理发师休息
