搜索资源列表
OS
- 在Windows2000环境下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件(后面介绍)的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问题。 读者-写者问题的读写操作限制(包括读者优先和写者优先) 1) 写-写互斥:不能有两个写者同时进行写操作 2) 读-写互斥:不能同时有一个线程在读,而另一个线程在写。 3) 读-读允许:可以有一个或多个读者在读。 读者优先的附加限制:如果读者申请进行读操作时已有另一个读者
Synchronization-problems
- 读者优先和写者优先问题的源代码 同步问题之三读者写者问题-Readers and writers readers priority and the source code of the priority issues of the writer
6
- 使用信号量实现有限缓冲区的生产者和消费者问题 使用信号量实现读进程具有优先权的读者和写者问题 -Producers and consumers semaphore limited buffer using semaphores reading process has a priority of readers and writers
ReaderAndWriter
- 操作系统课程设计,使用PV操作机器信号量、锁等机制,实现读者和写者互斥访问临界资源-Courses on operating system design, the use of PV operate the machine semaphore lock mechanisms, readers and writers to achieve mutually exclusive access to critical resources
pngtrans
- transforms the data in a row (used by both readers and writers).
write-and-reader-priority
- (1)任意多的读进程可以同时读这个文件; (2)一次只允许一个写进程往文件中写; (3)如果一个写进程正在往文件中写,禁止任何读进程或写进程访问文件; (4)写进程执行写操作前,应让已有的写者或读者全部退出。这说明当有读者在读文件时不允许写者写文件。-(A) any number of reading processes can simultaneously read the file (2) allows only one process to write the file to
zhe-reader-zhe-writer
- 多进程/线程编程:读者-写者问题。 1,设置两类进程/线程,一类为读者,一类为写者; 2,随机启动读者或写者; 3,显示读者或写者执行状态; 4,随着进程/线程的执行,更新显示; -Multi-process/thread programming: Readers- write the problem. 1, set two types of processes/threads, o
writerandreader
- 操作系统,关于读者写者问题。包括信号量机制、互斥同步信号,信息传递等。编译成功通过。-Operating system, on the readers and the writers. Mechanism including semaphores, mutexes synchronization signal information transmission. Compile successfully.
pngtrans
- transforms the data in a row (used by both readers and writers) for Linux.
codeandtext
- 首先,在执行读操作时,一旦没有写者,读者会进入写者临界区writerCritical.enterCriticalSection(),直到最后读者人数等于0时,离开写者临界区,因此,写者执行写操作,进入写者临界区时,需等待,直到没有读者为止;其次,每个写者进行写操作时,必须首先进入写者临界区,而synchronized关键字定义的方法,使得同一时间同步方法不允许被多次调用,这就保证了不可能有两个写者同时工作。所以,只允许一个写着对文件执行写操作。-First, perform a read ope
ReaderWriter
- 写一个多线程的程序实现读者和写者能够共享文件,文件里保存一篇文章,写者可以修改,读者可以阅读。-Write a multithreaded program, readers and writers to share files, file save an article writer can modify, readers can read.
Operating-systems-curriculum-design
- 利用模拟用信号量机制实现读者和写者问题:通过用户控制读进程和写进程,反应读者和写者问题中所涉及的进程的同步与互斥。-Using simulated using semaphore mechanisms readers and writers problem: by the user to control the reading process and the writing process, the reaction synchronization and mutual exclusion pr
exp2RW
- 创建一个控制台进程。此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件(后面有介绍)的要求进行读写操作。用信号量机制分别实现读者优先和写者优先的读者-写者问题。 读者-写者问题的读写操作限制(包括读者优先和写者优先): 1)写-写互斥,即不能有两个写者同时进行写操作。 2)读-写互斥,即不能同时有一个线程在读,而另一个线程在写。 3)读-读允许,即可以有一个或多个读者在读。 读者优先的附加限制:如果一个读者申请进行读操作时已有另一个读者
stold
- pngtrans.c - transforms the data in a row (used by both readers and writers).