搜索资源列表
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
pthread
- linux下的多线程的创建及信号同步,信号量,互斥量-under linux to create multi-threaded and signal synchronization, semaphores, mutex volume
GenericTemplateMSQ.tar
- Generic template class library for message queue implementation, uses pthread mutex.
thread.tar
- This program is written to explain pthread creation and destroy and its function. How to handle mutex and blocking etc-This program is written to explain pthread creation and destroy and its function. How to handle mutex and blocking etc..
pthread
- 基于ARM9的Linux多线程应用程序。生产者写入缓冲区和消费者从缓冲区读数的具体流程,生产者首先获得互斥锁,并且判断写指针+1后是否等于读指针,如果相等则进入等待状态,等候条件变量notfull;如果不等则向缓冲区中写入一个整数,并且设置条件变量为notempty,最后释放互斥锁。消费者线程与生产者线程类似。-ARM9-Linux-based multi-threaded applications. Producers and consumers into a buffer from the
pthread
- 互斥量的简单应用,使用互斥量是实现多线程程序中的同步访问的另一种手段 -Mutex amount of simple applications using the exclusive capacity to achieve simultaneous multi-threaded program in an alternative means of access
pthread
- linux多线程编程的一个例子。里面用到了互斥锁。生产者/消费者模型。-linux an example of multi-threaded programming. Which uses a mutex. Producer/consumer model.
product_consume
- 用线程互斥锁实现生产者消费者,生产者生产供消费者消费- pthread mutex make up the producter and consumer
pthread_mutex.h
- pthread mutex initializer for two processes
pthread-interview
- 主要将有线程的互斥锁和生产者消费者等功能的复习总结。数据池的封装等。-Major will have a thread mutex and features such as producers and consumers of the review summary.
pthreadcc
- For those wishing to develop multi-threaded applications in a C++ class oriented environment. This library allows creation of threads as classes as well as access to multi-threaded programming tools as class abstractions. Even if the basic prog
shiyan2
- 哲学家进餐问题 #include<stdio.h> #include<semaphore.h> #include<pthread.h> //宏定义信号量个数为5,宏定义0表示思考,宏定义1表示饿,宏定义2表示吃,宏定义(ph_num+4) N表示左,宏定义(ph_num+1) N表示右 #define N 5 #define THINKING 0 #define HUNGRY 1 #define EATING 2 #
1.tar
- 经典的互斥锁线程例子,使用 pthread 的互斥锁机制,使得程序运行的结果正确,使用 pthread 线程库创建两个线程,两个线程都要访问共享变量counter,按照源程序的逻辑,两个线程各循环 5 次,每次循环对 counter 变量加 1,最后打印的结果是 10。-The classic example of mutex thread using pthread mutex lock mechanism, so that the results of the program is runn