搜索资源列表
pv2
- 信号量也称为信号锁,主要应用于进程间的同步和互斥,在用于互斥时,通常作为资源锁。信号量通常通过两个原子操作wait(P)和signal(V)来访问。wait操作使信号量的值+1,signal操作使信号量的值-1。本程序修改wait操作,使之能一次申请多个信号量-Semaphore is also known as signal lock, mainly used in inter-process synchronization and mutual exclusion, are used in
tongbu
- 同步与互斥 ,还有显示当前线程,司机售票员的pv,还有售票员买票-Synchronization and mutual exclusion, but also shows the current thread, the driver conductor of pv, also buy a ticket conductor
huchiyunxing
- 本程序讲述在Visual c++.net下如何使用内存映射文件实现多个程序间互斥运行,代码注释详细。有需要的朋友可以下载看看!-This procedure described in Visual c . Net how to use memory-mapped file to achieve mutual exclusion between multiple programs running, the code comment in detail. In need of a friend
ThreadDemo
- 这是一个多线程操作的例子,其中包括线程同步,互斥及结循环队列的操作!是初始c++builder中线程操作的好实例-This is an example of multi-threaded operation, including thread synchronization, mutual exclusion, and to bear the operation cycle of the queue! Are initial c++ builder in the thread a good ex
Release
- 电梯调度程序,支持电梯与电梯之间的同步与互斥-Elevator scheduler to support the elevator and the elevator synchronization and mutual exclusion between
Programs(update)
- 以生产者/消费者模型为依据,在Windows 2000环境下创建一个控制台进程,在该进程中创建n个线程模拟生产者和消费者,实现进程(线程)的同步与互斥。-To the producer/consumer model as the basis, in the Windows 2000 environment to create a console process, in the process to create a thread simulation n producers and consum
writeread
- 测试一下读写进程互斥问题~仅是一个小小的程序~如有不满意~请见谅-Test the reading and writing process of mutual exclusion problem ~
jincheng
- 操作系统进程的同步与互斥。解决经典的水果问题。-The operating system process synchronization and mutual exclusion. To solve the classic problem of fruit.
OS_projectC_Mutex
- You are asked to design and implement a simulator for university life where lecturers provide lectures (credits) and students attend lectures (credits) to graduate. This simulator uses a bounded circular buffer shared by lecturers and students. Lectu
ProcessSynchronizationAndMutualExclusion
- (1)操作系统中允许同时有多个进程并发进行,进程对共享资源存在互斥或者协作关系。其中生产者进程产生信息资源,可以是计算进程。消费者进程使用信息,它可以是输出打印进程,对于缓冲区生产者与消费者进程互斥使用,其次,消费者进程依赖于生产者产生的资源,如果尚未得到满足,则必须等待生产者信号的唤醒; (2)本程序运行必须设置模拟系统缓冲区的个数以及系统进程的个数,对于每个程序,还必须设置其属性,即是生产者或者消费者,由简单的数字1和2表示。对于缓冲区的设置和进程个数及属性的设置可以根据需要模拟互斥和贡
jinc
- windows进程模拟小程序 模拟进程状态转换 进程互斥 和进程通信 vc++ mfc-windows process simulation program to simulate the process of the small state of the conversion process mutual exclusion and process communications vc++ mfc
Reader_and_Writer
- 操作系统中读者写者算法的实现,涉及到系统互斥资源的争用和释放问题,初学者可以参考-Readers to write the operating system the realization of those algorithms, involving mutual exclusion of resources to the system and the release of contention issues, beginners can refer to
ProducerAndConsumer
- 生产者消费者源程序,实现进程间同步和互斥-Producer consumer source, to achieve inter-process synchronization and mutual exclusion
sx3
- 操作系统课程设计,关于消费者与生产者的同步互斥问题的程序源代码。-Courses on operating system design, on consumers and producers mutual exclusion synchronization program source code.
jinchengguanli
- 1.掌握进程的概念,明确进程的含义 2.认识并了解并发执行的实质 3.掌握进程另外的创建方法 4.熟悉进程的睡眠、同步、撤消等进程控制方法 5.进一步认识并发执行的实质 6.分析进程竞争资源的现象,学习解决进程互斥的方法 -1. To grasp the concept of the process, clearly the meaning of the process 2. Know and understand the essence of concurrent e
producer_customer_question
- 通过创建线程实现生产者、消费者对缓冲区进行互斥操作。 用信号量机制解决进程(线程)的同步与互斥问题。 缓冲区大小为31,缓冲区满则不允许生产者生产数据,缓冲区空则不允许消费者消费数据。 程序一直运行下去,直到敲击回车停止。-Achieved by creating a thread producers, consumers mutually exclusive operation of the buffer. Settlement process with the semaphore
OSproject
- 是一个在windows下实现消费者生产者进程互斥的实验-Is a producer in the windows of consumers to achieve mutual exclusion experiment
code
- 实验一 用信号量来实现读者-写者问题 (一) 实验目的 理解进程(或线程)及信号量的概念 (二) 实验内容 1、定义一个数据缓存buffer及用于实现同步互斥的信号量。 2、定义一个读者函数: 当有写者在占用buffer时,读者应该等待,直到写者不再使用该buffer。 当有其他读者在占用buffer时,读者可对buffer进行读取操作。 当buffer中有数据时,则从其中读取一个数据,并显示然后退出。 当buffer中没有数据时,应等待,直到buffe
zzc
- 1)进程的创建: 编写一段程序,使用系统调用fork() 创建两个子进程。当此程序运行时,在系统中有一个父进程和两个子进程活动。让每一个进程在屏幕上显示一个字符:父进程显示字符“a”,子进程分别显示字符“b”和“c”。试观察记录屏幕上的显示结果,并分析原因。 (2)进程的控制 修改已经编写的程序,将每个进程输出一个字符改为每个进程输出一句话,再观察程序执行时屏幕上出现的现象,并分析原因。 如果在程序中使用系统调用lockf () 来给每一个进程加锁,可以实现进程之间的互斥,观察并
11
- 通过实验,尝试创建进程和线程,实现线程间的同步和互斥,对同步、互斥算法有更深的了解。-Through the experiment, try to create processes and threads, to achieve synchronization and mutual exclusion between threads, and synchronization, mutual exclusion algorithms have a better understanding.