搜索资源列表
readerwriter
- 通过读者与写者(写者优先)的模型,模拟线程及其同步机制-Through the reader and writer (written preferred) model to simulate the threads and synchronization mechanisms
simplePC
- Windows进程和线程创建方法实现一个简单的读者写者程序,读者将1~10十个数字一次填入临界区gData,当且仅当gData被读者消费后,写者才可以写入下一个数。-Windows process and thread creation method to implement a simple reader writer program, readers will be number 1 to 10 ten critical areas once populated gData, if and
TestReaderAndWriter
- 操作系统中读者写者问题的模拟实现采用java多线程方式实现-Reader and Writer(Reader First)
reader_and_writer
- 读者写者问题模拟的实现,vs2008开发环境,有助于理解windows下的多进程机制-the reader and writer problem
rd
- 在Windows2000环境下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问题。-In Windows2000 environment, create a console process, this process contains n threads. N threads with which to express n a reader or writer. Each threa
reader_writer.c
- 进程间通信中经典的读者-写者问题,用信号量实现同步和互斥。-Interprocess communication in the classic reader- writer problem, synchronization with semaphores and mutexes.
reader-writer
- 用多线程解决读者-写者问题,实现读写互斥,写写互斥,读读同步。-Readers- write the problem of multi-threaded solution, to achieve read and write mutex, write mutex, read synchronization.
Reader-Writer
- 创建一个控制台进程,此进程包含n个线程,用这n个线程来表示n个读者或写者,每个线程按相应测试数据文件(后面有介绍)的要求进行读写操作,用信号量机制分别实现读者优先和写者优先的读者-写者问题。 读者-写者问题的读写操作限制(包括读者优先和写者优先): 写-写互斥,即不能有两个写者同时进行写操作。 读-写互斥,即不能同时有一个线程在读,而另一个线程在写。 读-读允许,即可以有一个或多个读者在读。 读者优先的附加限制:如果一个读者申请进行读操作时已有另一个读者正在进行读操作,则该
OS
- 在Windows2000环境下,创建一个控制台进程,此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件(后面介绍)的要求进行读写操作。用信号量机制分别实现读者优先和写者优先问题。 读者-写者问题的读写操作限制(包括读者优先和写者优先) 1) 写-写互斥:不能有两个写者同时进行写操作 2) 读-写互斥:不能同时有一个线程在读,而另一个线程在写。 3) 读-读允许:可以有一个或多个读者在读。 读者优先的附加限制:如果读者申请进行读操作时已有另一个读者
Reader-Writer
- 这是一个用C语言编写的读者写者问题的程序。程序自带进程号和开始时间、执行时间,运行后,显示进程执行效果。-This is a written in C readers who write the program problem. Program own process number and start time, execution time, after the operation, display process execution effect.
zhe-reader-zhe-writer
- 多进程/线程编程:读者-写者问题。 1,设置两类进程/线程,一类为读者,一类为写者; 2,随机启动读者或写者; 3,显示读者或写者执行状态; 4,随着进程/线程的执行,更新显示; -Multi-process/thread programming: Readers- write the problem. 1, set two types of processes/threads, o
readerWriter
- 使用多线程模拟写者优先的读写者问题,当有写者等待时,读者不能进入阅读,不是最少互斥量版-A solution to implement the reader and writer problem with writer priority, using two samephore and four mutex to meet it.
WR
- 创建一个控制台进程。此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件(后面有介绍)的要求进行读写操作。用信号量机制分别实现读者优先和写者优先的读者-写者问题。-Create a console process. This process consists of n threads. Use of these n threads to express n readers who write. Each thread according to the corresp
readerAndwriter
- 读者与写者问题的解决(包括读者优先与写者优先)-The solution to the reader and the writer (including the reader first and the priority)
exp2RW
- 创建一个控制台进程。此进程包含n个线程。用这n个线程来表示n个读者或写者。每个线程按相应测试数据文件(后面有介绍)的要求进行读写操作。用信号量机制分别实现读者优先和写者优先的读者-写者问题。 读者-写者问题的读写操作限制(包括读者优先和写者优先): 1)写-写互斥,即不能有两个写者同时进行写操作。 2)读-写互斥,即不能同时有一个线程在读,而另一个线程在写。 3)读-读允许,即可以有一个或多个读者在读。 读者优先的附加限制:如果一个读者申请进行读操作时已有另一个读者