搜索资源列表
5examplesofLinux-c
- 简单的字符设备驱动程序mydriver.c、用mmap()来读取/etc/passwd 文件内容、mutex的使用实例、condition virable的使用实例、semaphore的使用实例-A simple character device driver mydriver.c, using mmap () to read/etc/passwd file content, mutex the use of examples, condition virable the use of exam
PV_handle
- 实现一个进程,该进程拥有一个生产者线程和一个消费者线程,它们使用32个不同的缓冲区。使用如下信号量: (1)一个互斥信号量,用以阻止生产者线程和消费者线程同时操作缓冲区列表; (2)一个信号量,当生产者线程生产出一个物品时可以用它向消费者线程发出信号; -Implement a process that has a producer thread and a consumer thread, they use 32 different buffers. Semaphore using
signal_mutex
- 演示了linux中用信号量实现互斥锁的机制,用gcc编译后运行-Demonstrated using linux semaphore mutex lock mechanism, with the gcc compiled and run
IPC_Funs
- c++写的在linux环境下多线程间使用互斥锁、posix信号量和system v信号量,实现的通信程序。自己编写的,自己测试过。-written in c++ linux environment using multi-thread mutex locks, posix semaphores and system v semaphore, to achieve the communication program. I have written, and tested.
MutexAndSemaphoreTest
- 使用Windows信号量和互斥量实现生产者和消费者问题。对于多线程开发很有指导意义。-use Windowss semaphore and mutex to implement producer and consumer program!!
mutex_semphore
- Linux下操作系统的基本知识,在多线程处理中通过信号量进行互斥处理。-Basic knowledge of the Linux operating system under multithreading semaphore mutex.
ThreadMutual
- 线程同步的几种方式的c++方法,Mutex,Event,Semaphore等-Several methods of thread synchronization methods c, Mutex, Event, Semaphore, etc.
09-Queue
- 使用一个互斥量和一个信号量来对一个队列的简单数据元素进行控制,是队列具备线程安全-Using a mutex and a semaphore to queue for a simple data elements to control the queue thread safe
cam_semaphore
- Implement semaphore with mutex and conditional variable. Reason being, POSIX semaphore on Android are not used or well tested.
share
- Wait on the semaphore till it is released.Lock the mutex to protect the critical section.
setw
- Thread, mutex, condition variable, barrier, semaphore and thread-specific data functions.
cmp_nullptr
- Create the mutex semaphore, with initial value 1 Source Code for Embedded Linux.