搜索资源列表
TrafficLights
- 十字路口的红绿灯管制问题,实现多进程并发控制。车数,车速可调-crossroads traffic light control, multi-process concurrency control. Several vehicles, adjustable speed
FinderDemo
- 多线程的VC++高速文件搜索代码,设置路径、文件名、包含字符、线程数,程序会快速运行起来,不过你的硬盘可要忙的不亦乐呼了,一般情况下,搜索文件速度受制约的是硬盘,而不是程序本身。 -Multithreaded VC++ high-speed file search code, set the path, file name, including the characters, the number of threads, the program will quickly run up, bu
DianTi
- 电梯模拟程序,2个电梯,6层楼,分别用2个线程控制电梯的速度,用主线程控制界面显示-Elevator simulation program, 2 lifts, 6 floors, each with two threads control the speed of the elevator, with the main thread control interface display
SimuRWLock
- 通过Mutex封装实现的读写锁类。写锁优先于读锁。如果有写锁在等待,则读锁一直等待,直到写锁获取锁,并释放后才能获取。读锁是共享锁,写锁是独占锁。提供Mutex与临界区两种方式可宏切换实现,Mutex为系统内核对象,速度比较慢,但比较好控制。临界区速度快,但无进入临界区无超时时间,对时间控制不精确。 BOOL ReadLock(int timeout=INFINITE) BOOL TryReadLock(int timeout=INFINITE,BOOL bLock=TRUE)