搜索资源列表
使用互斥进行线程同步代码示例 Thread3_23
- 本代码演示了利用临界区实现线程的同步。-demonstration of the code used to achieve critical thread synchronization.
UCOS-668
- ucos基于P89C668的演示程序已在硬件上跑通,有5个线程-OUT based P89C668 the demo program has been run on the hardware links, five Thread
product_consume_pro
- 通过多线程模拟,实现生产和消费者进程同步问题,可以作为教学演示-Through multi-threaded simulation, the process of production and consumer synchronization problem can be as a teaching demonstration
CUNCHU
- 模拟各种内存分配算法及回收过程,并能动态演示。结合进程调度算法,能为进程模拟分配内存,并设计一个跟踪该内存模拟分配的进程或线程,记录内存分配的结果;-Simulate all kinds of memory allocation algorithms and recycling process, and can dynamic presentation. Combination of process scheduling algorithm to allocate memory for pro
windows_pc
- 生产者 消费者问题 生产者-消费者问题是一个经典的进程同步问题,该问题最早由Dijkstra提出,用以演示他提出的信号量机制。在同一个进程地址空间内执行的两个线程生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。当生产者线程生产物品时,如果没有空缓冲区可用,那么生产者线程必须等待消费者线程释放出一个空缓冲区。当消费者线程消费物品时,如果没有满的缓冲区,那么消费者线程将被阻塞,直到新的物品被生产出来。(prodecer consu