搜索资源列表
sheng
- 操作系统生产者消费者问题的一个程序,用信号量做的-operating system producers and consumers of a program that will signal to do
windows_reader_writer
- 线程的读者优先与写者优先。创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件进行读写操作。用信号量机制分别实现读者优先和写者优先的读者写者问题。-priority threads with the readers who wrote priority. The process of creating a console, this process contain n threads. Use of these n threads to expre
xinhaoliangtongbu
- 信号量同步的实验,计算机操作系统的实验完全实现代码-signal synchronization experiments, the experimental computer operating system fully realized code
threadphilosopher
- 利用线程方案实现实现哲学家问题.设置五个信号量代表五把叉子,初使值均为1,表示5把叉子均可以取,设置五个线程代表5个哲学家,其值分别为0~4,规定奇数号的哲学家先拿起他左边的叉子,然后再去拿他右边的叉子 而偶数号的哲学家则相反.按此规定,将是1,2号哲学家竞争1号叉子,3,4号哲学家竞争3号叉子.即五个哲学家都竞争奇数号叉子,获得后,再去竞争偶数号叉子,最后总会有一个哲学家能获得两支叉子而进餐。而申请不到的哲学家进入阻塞等待队列,根FIFO原则,则先申请的哲学家会较先可以吃饭,因此不会出现饿死的
list.cpp
- 信号量又称为信号灯,它是用来协调不同进程间的数据对象的,而最主要的应用是前一节的共享内存方式的进程间通信。本质上,信号量是一个计数器,它用来记录对某个资源(如共享内存)的存取状况。一般说来,为了获得共享资源,进程需要执行下列操作:-volume also known as signal lights, it is used to coordinate different processes of the data object, but the most important applicatio
singledemo
- 一个信号量传递的例子,适合初学者,希望从中得到帮助-send a signal to the example, for beginners, hopes to help
thread123123
- 一个windows进程互斥访问的程序,用到信号量等机制,采用时间片轮转法! -a visit to contradict the procedure used signal to other mechanisms, using time-rotate Act!
xh
- 一个封装的信号量类,主要在ARM-Linux上应用。使用方法参考试验例程。-signal a package volume category, mainly in the ARM-Linux applications. Use reference test routines.
ThreadSync
- 该应用程序运行后自动创建两个线程。线程1每50毫秒计数器加1,线程2每100毫秒计数器加1。只读编辑框中分别显示两个计数器的值。两个命令按钮分别控制线程1和线程2的挂起和恢复。“同步”复选框控制两线程的同步,当处于同步状态时,同一时刻只能有一个线程拥有信号量对象,当某一线程拥有信号量对象时,计数器加10,然后释放信号量对象。由于两线程优先级相同,因此,执行结果是每个线程计数器一次以10为步长增加。-run the application automatically creates two thr
Deadlock
- 死锁的程序演示 用信号量实现的-the procedures used to demonstrate signal to achieve the volume
os_example
- 验证进程同步的信号量方法的C程序-certification process synchronization signal quantity of C Program
semaphore_unix
- unix下的信号量控制-under the volume control signal
WinGOS
- 一个更为先进的嵌入式操作系统.采用RMS线程调度算法,具有信号量等同步对象.亦包括GUI. 通过该系统您可以极大知道Windows的内部秘密.-a more advanced embedded operating system. RMS using thread scheduling algorithm, with the volume of signal synchronization objects. also includes GUI. The system can greatly Y
xtd_IPC
- 一个简单的关于LINUX下的进程间通讯的演示,使用的是信号量.适合初学编程的同学一起学习!-a simple LINUX on the inter-process communication demonstration, using a semaphore. Programming for beginner students learning together!
sem_syn
- 通过两个信号量来实现两个线程间的同步,完成了互斥功能.-through two signals to achieve volume between the two threads simultaneously, and completed the mutex function.
Tornado_Train_Workshop_demo_program
- 此程序运行在Tornado环境中,里面包含了tornado入门的基本程序,也是Vxworks入门非常好的资料,里面包括信号量,消息,队列,中断,事件,等等的示例,还有tornado环境工具如windview,crosswind 的使用的例子-this program to run in Tornado environment. it contains the tornado caught the basic procedures, as well as portal Vxworks very g
Training-Example
- 嵌入式VxWorks开发所需典型例程源代码,包括消息队列,信号量,时钟,优先级反转,中断等常见处理.-VxWorks embedded typical routines required for the development of the source code, including the Message Queue, semaphores, the clock, priority inversion, and other common treatment interruption.
zhexue05
- 进程同步,哲学家进餐共享临界区变量.定义信号量机制控制进程不互斥!-process synchronization, philosopher dining area share critical variables. Definition signal to the process control mechanism not contradict!
jiou05
- 奇偶哲学家通过信号量机制控制进程的同步和互斥访问临街区域,保证正常执行!-signal through the volume control mechanism for the process of synchronization and mutex visit to the region along the street to ensure normal execution!
philosophers05
- 经典进程同步和互斥另类WINDOWS解法.定义信号量机制在WINDOWS下完成哲学家进餐问题.-classical process synchronization and mutex WINDOWS alternative solution. Volume definition signal mechanism in Windows complete the dining philosophers problem.