搜索资源列表
barber
- 睡眠理发师问题C++解法,使用信号量,理发座位数可选,理发师只有一个-Using semaphore to solve barbers problem,there’s one barber,infinite customer,and a few waiting position,the number of waiting position is depend on the user. 3 semaphores are involved in the program: m_h,barb
UNIXCcode
- 用C语言编写的Unix代码实例 供大家参考 -#include <sys/sem.h> #include <sys/types.h> #include <sys/ipc.h> #include <stdio.h> #include <sys/stat.h> #define VERIFYERR(a, b) if (a) fprintf(stderr, " s failed.\n", b) else fp
ipc
- 共享内存的使用演示,以及进程间信号量的封装-Demonstrate the use of shared memory, as well as inter-process semaphore package
sem.tar
- Linux下信号量编程,封装好了接口,可以方便使用-Semaphore programming under Linux, the interface wrapper, you can easily use
library
- 模拟图书馆系统,运用多线程、信号量,图书馆中有20个座位,外有10个座位-Simulation library system, the use of multiple threads, semaphores, the library has 20 seats, 10 seats outside
11
- Linux 下进程间通信实例之一——信号量 使用信号量控制父子进程的输出顺序-Linux, one example of inter-process communication- use semaphore semaphore control the output of the process of the order of father and son
12_msg
- Linux 进程间通信实例之一——消息队列 使用了信号量用于进程间的同步。-Linux is one example of inter-process communication- the message queue using semaphores for synchronization between processes.
ucos-ii_test3
- 创建三个任务,使用信号量调度任务,观察任务的运行情况。-Create three tasks, scheduling tasks using semaphores to observe the operation of the task.
AKAE_train_code
- 任务间的同步 事件和事件控制块——描述事件的数据结构 信号量及其使用 消息邮箱及其使用 消息队列及其使用-Synchronization between tasks and event control block event- the event describing the data structure and its use semaphore messages using the message queue and the mailbox and its use
server
- 我写的服务器程序 共享内存 信号量 socket 我写的服务器程序 共享内存 信号量 socket-I wrote a server program shared memory semaphore socket server program I write socket shared memory semaphores
readingroom
- 用信号量模拟阅览室管理系统,使用简单的多线程机制-Simulation with Signal Analysis System, using a simple multi-threaded mechanism
writepriority
- 写优先的读者写者问题,使用共享内存,多个信号量实现。-writer and reader
semop
- 在linux环境下关于信号量的代码,semop-On the semaphore code, in the linux environment
fafa
- 利用记录性信号量解决生产者——消费者问题-Record of the use semaphores to solve the producer- consumer issues
xianchengthread
- 在Windows 2000 环境下,创建一个包含n 个线程的控制台进程。用这n 个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求,进行读写操作。请用信号量机制分别实现读者优先和写者优先的读者-写者问题。-In Windows 2000 environment, create a console that contains the process of n threads. N threads with which to express n a reader or writer. E
bingFa
- 在linux环境下,使用多线程和信号量机制实现经典的读者写者问题-In the linux environment, using multiple threads and semaphore mechanism to bring readers to write the problem of classic
xsi.tar
- 几种常见unix进程间通信的使用,消息队列,信号量,共享内存-Several common unix use inter-process communication, message queues, semaphores, shared memory
semdemo
- 适用于嵌入式linux的信号量源代码,绝对真实可用,非常有益。-For embedded linux semaphore code, absolute truth can be very useful.
Sem
- linux下system V信号量的C语言封装,及其示例代码,用于进程间通信。-Provide C-language package of system V semaphore under linux as well as sample code. This package is used for inter-process communication.
Socket_linux
- linux环境下的socket编程,包括线程池,信号量,消息队列等-linux/unix socket