搜索资源列表
producer_customer_question
- 通过创建线程实现生产者、消费者对缓冲区进行互斥操作。 用信号量机制解决进程(线程)的同步与互斥问题。 缓冲区大小为31,缓冲区满则不允许生产者生产数据,缓冲区空则不允许消费者消费数据。 程序一直运行下去,直到敲击回车停止。-Achieved by creating a thread producers, consumers mutually exclusive operation of the buffer. Settlement process with the semaphore
process
- linux-0.11的信号量实现。采用生产者消费者验证-linux-0.11 of the semaphore. Verified by producers and consumers! !
PVoperation
- 实验中提供了 5 个信号量(s0-s4)和 20 个进程(pid 0-19) 。在程序运行过程中可以 键入 wait 命令,signal 命令和 showdetail 命令显示每个信号量的状态。具体输入解释如 下: 1) wait 获取信号量操作(P操作) 。 参数: 1 sname 2 pid 。 示例:wait(s1,2) 。进程号为 2 的进程申请名字为 s1 的信号量。 2) signal 释放信号量操作(V 操作) 。 参数 1 sname。
VxWorksDemosProject
- 初学者很好的实验源码,包括任务创建管理、任务间信号量的通信、消息队列、管道等-Good test source for beginners, including the task of creating management, semaphore communication between tasks, message queues, pipes, etc.
01_uCOS-II_sem
- ucos下的信号量使用实例源码,配合ucos标准教程一书-semaphore ucos use cases under the source, with the standard tutorial book ucos
code
- 实验一 用信号量来实现读者-写者问题 (一) 实验目的 理解进程(或线程)及信号量的概念 (二) 实验内容 1、定义一个数据缓存buffer及用于实现同步互斥的信号量。 2、定义一个读者函数: 当有写者在占用buffer时,读者应该等待,直到写者不再使用该buffer。 当有其他读者在占用buffer时,读者可对buffer进行读取操作。 当buffer中有数据时,则从其中读取一个数据,并显示然后退出。 当buffer中没有数据时,应等待,直到buffe
readerwriter
- 实验一 用信号量来实现读者-写者问题 (一) 实验目的 理解进程(或线程)及信号量的概念 (二) 实验内容 1、定义一个数据缓存buffer及用于实现同步互斥的信号量。 2、定义一个读者函数: 当有写者在占用buffer时,读者应该等待,直到写者不再使用该buffer。 当有其他读者在占用buffer时,读者可对buffer进行读取操作。 当buffer中有数据时,则从其中读取一个数据,并显示然后退出。 当buffer中没有数据时,应等待,直到buffe
RadvisionVoIPStackOSAL_common
- Radvison OSAL - common system tool semaphore, mutex, ... 编写操作系统抽象层的参考-Radvison OSAL- common system tool semaphore, mutex, ...
signal
- 这是linux操作系统这门课程中,有关信号量的课件-This is the linux operating system in this course, the courseware semaphore
da
- 1.实验目的 (1)理解进程/线程同步的方法,学会运用进程/线程同步的方法解决实际问题; (2)了解windows系统或unix/linux系统下中信号量的使用方法。 -1. Purpose of the experiment (1) understand the process/thread synchronization methods, learn to use the process/thread synchronization methods to solve practi
thread
- 线程信号量实现生产者消费者问题,运用缓冲队列实现缓冲区。-Semaphore thread producers of consumer issues, the use of the buffer queue implementation buffer.
PV
- 用多线程实现“生产者-消费者问题”本作业要求设计并实现一个进程,该进程拥有一个生产者线程和一个消费者线程,它们使用N个不同的缓冲区(N为一个自定义的确定的数值,例如N=32)。你需要使用如下信号量:一个互斥信号量,用以阻止生产者线程和消费者线程同时操作缓冲区列表;一个信号量,当生产者线程生产出一个物品时可以用它向消费者线程发出信号;一个信号量,消费者线程释放出一个空缓冲区时可以用它向生产者线程发出信号; -Achieved with multi-threaded " producer
bfs.c
- THIS A BITONIC SEARCH PROGARM. A BITONIC SEARCH IS A PROGRAM THAT IS USED TO FIND OUT THE PARALLEL VALUES THAT ARE UNSORTED AND CAN BE REALIZED AT A TIME USING SEMAPHORE -THIS IS A BITONIC SEARCH PROGARM. A BITONIC SEARCH IS A PROGRAM THAT IS USED TO
PV_handle
- 实现一个进程,该进程拥有一个生产者线程和一个消费者线程,它们使用32个不同的缓冲区。使用如下信号量: (1)一个互斥信号量,用以阻止生产者线程和消费者线程同时操作缓冲区列表; (2)一个信号量,当生产者线程生产出一个物品时可以用它向消费者线程发出信号; -Implement a process that has a producer thread and a consumer thread, they use 32 different buffers. Semaphore using
ThreadTest
- 測試lock, monitor, mutex, semaphore等執行緒用法-test use of lock, monitor, mutex, and semaphore in threads
OS
- 有进程,线程和信号量编程的操作系统编程。-A process, thread and semaphore programming, operating systems programming.
PRO_TIMER_queue
- 1 信号量同步 2 阻塞式读写 3 定时器 4 内存映射 5 /proc访问 6 工作队列 -1 2 blocking synchronization semaphore to read and write memory-mapped 3 Timer 4 5/proc access to the work queue 6
sem
- Semaphore in linux programming
Process-scheduling-to-achieve
- 本程序运用java语言模拟线程间的调度,在原随机调度的基础上实现轮转调度,优先级调度,处理各线程间的调度关系,并试着用信号量实现线程的锁定和释放。-This program threads using java language simulation scheduling, dispatching the former on the basis of random rotation scheduling, priority scheduling, process scheduling of th
signal_mutex
- 演示了linux中用信号量实现互斥锁的机制,用gcc编译后运行-Demonstrated using linux semaphore mutex lock mechanism, with the gcc compiled and run