搜索资源列表
threadinWin32
- 在编程过程中产生线程作了全面的分析,分析CriticalSection Mutex Semaphore Event在线程中的应用时各自优缺点作详细解说
producer-consumer-problem
- Introduction In this project, we will design a programming solution to the bounded-buffer problem using the producer and consumer processes . The solution uses three semaphores: empty and full, which count the number of empty and full slots
thrd-win32
- Win32 现成创建,包括Win32 MUTEX 锁和WIN 32 SEMAPHORE 信号灯。-Windows 32 thread create.
MUTEX
- 进程与线程中的信号量编程,有关Mutex方面的源代码-Process and thread semaphore programming, the Mutex' s source code
Mutex_Critical
- 这个例子利用多线程使用不同的排序算法对数据进行排序,每一个线程使用不同的算法。主线程里使用快速排序QuickSort,其他四个算法分别建立四个子线程,在子线程中进行排序。因为每一个线程都要调用函数PrintResult把结果输出到显示器上,所以不同的线程就会争夺着向显示器输出,这样,不同线程的输出就会混合在一起,所以呢必须让线程一个接着一个输出。也就是必须对PrintResult进行互斥控 制。要进行互斥控制,则必须用到Event、Mutex、CrititicalSection、Semaph
PV
- 用多线程实现“生产者-消费者问题”本作业要求设计并实现一个进程,该进程拥有一个生产者线程和一个消费者线程,它们使用N个不同的缓冲区(N为一个自定义的确定的数值,例如N=32)。你需要使用如下信号量:一个互斥信号量,用以阻止生产者线程和消费者线程同时操作缓冲区列表;一个信号量,当生产者线程生产出一个物品时可以用它向消费者线程发出信号;一个信号量,消费者线程释放出一个空缓冲区时可以用它向生产者线程发出信号; -Achieved with multi-threaded " producer
p-and-c
- 在Windows和Linux操作系统上,利用各自操作系统提供的Mutex和信号量机制(Win32 API或Pthreads),实现生产者/消费者问题-In the Windows and Linux operating systems, the use of their operating system provided Mutex and semaphore mechanism (Win32 API or Pthreads), to achieve the producer/consumer
vcthreads
- 10个VC++多线程操作实例源代码,内容涉及如何安全终止线程、如何创建UI线程、如何创建Worker线程、如何等待线程结束、如何挂起和恢复线程、如何获得线程的退出码、如何使用互斥量、如何使用临界区、如何使用信号量等内容,入门者更应该看一看,多线程的使用很广泛,可以提高程序效率-10 VC++ multi-threaded operation examples of source code, content involves how to safely terminate a thread, ho
dxc
- 处理多线程问题,具体是处理生产者与消费者的问题,有关学习互斥量信号量的简单知识-Deal with multi-threading issues, in particular the problem of treatment of producers and consumers, the simple knowledge about learning mutex semaphore