搜索资源列表
two-thread
- java双进程同步互斥的问题,一个文件写一个文件播放,播放完成后,删除这个文件,去读另外一个文件,于此同时写这个文件。-java mutually exclusive two-process synchronization problem, a file write a file to play, play is complete, delete this file, to read another file, this also write to this file.
Javaproducer-Consumer
- java实现生产者消费者的过程,两个线程对一个互斥锁的资源访问,从而实现同步与互斥-java implementation of the process of producers and consumers, two threads of a mutex resource access, in order to achieve synchronization and mutual exclusion
ReaderWriter
- Java多线程读者写者程序。程序先从txt文本中读取读者写者信息,1 R 3 5为例,1为线程序号,R表示读者,3表示申请操作的时间(秒为单位),5表示操作持续的时间。运行后先选择读者/写者优先,之后按照文本中的描述建立线程,采用信号量机制处理互斥访问。-Readers who write multi-threaded Java programs. Txt program text reads the reader to start writing Information, 1 R 3 5, f
tp2
- 用Peterson算法实现两个传送带互斥,保证工场的分拣器正常工作的小算法。可以看做一个并发系统的基础理解-Peterson algorithm with two conveyor belts mutually exclusive, guaranteed workshops sorting algorithm to work properly small. Can be seen as a basis for understanding concurrent systems
JAVA-NOTE-4
- JAVA多线程详解-Java语言的一个重要特点是内在支持多线程的程序设计。多线程是指在单个的程序内可以同时运行多个不同的线程完成不同的任务。多线程的程序设计具有广泛的应用。本章主要讲授线程的概念、如何创建多线程的程序、线程的生存周期与状态的改变、线程的同步与互斥等内容。-JAVA multi-threading Detailed An important feature of the Java language is inherent support for multi-threaded pro
JTable
- 利用ATM取钱问题来模拟操作系统中临界资源信号量的同步与互斥问题-ATM withdrawals using the issue to simulate the critical resources of the operating system semaphore synchronization and mutual exclusion problems
os1
- 操作系统,进程的同步和互斥的实现,简单易懂,适合初学者-Operating system, the process of synchronization and mutual exclusion implementation
p-and-c
- 线程管理中的生产者消费者问题,主要是描述线程管理中生产者与消费者在共享资源时是否同步与互斥问题-Producers and consumers in the thread management, describes the thread management of producers and consumers, whether in the shared resource synchronization and mutual exclusion
OS
- 用JAVA模拟操作系统上的信号量以及互斥的功能。-Using the Java operating system simulation on the amount of signal, as well as mutually exclusive functions.
Test
- 生产者,消费者,互斥信号量,解决多线程调度问题,-Producers, consumers, mutexes, semaphores, to solve the multi-threaded scheduling problem
SaleTicket
- 通过多线程的同步于互斥,模拟售票,一个窗口售票,多个买票者购票,票数设为50 主要是利用线程间的同步于互斥 -failed to translate
time
- 用时间片轮转算法的进程调度程序,可以在界面设定的互斥资源(包括两种:输入设备与输出设备)的数目,进程数、进入内存时间、要求服务时间可以在界面上进行设定.采用可视化界面,可在进程调度过程中随时暂停调度,查看当前进程的状态以及相应的阻塞队列.-With a round-robin algorithm process scheduler, you can set the interface mutex resources (including two types: input devices and
JingCheng-Communications
- 1、 点“创建线程” 按钮,创建两个线程,一个线程不断对一个变量加1,结果显示在第一个文本框中。另一个线程不断对另一个变量减1,结果显示在第二个文本框中。这两个线程之间没有交互,仅用于演示线程的创建。 2、 演示线程互斥,点“线程互斥” 按钮,创建两个线程,一个线程不断循环,每次循环对共享变量x做100次加1操作(这100次加1操作作为一个临界区CSa),另一个线程不断循环,每次循环对共享变量x做100次减1操作(这100次减1操作作为一个临界区CSb),结果显示在第三个文本框中。可以看到结
Thread-Communications
- 1、 点“创建线程” 按钮,创建两个线程,一个线程不断对一个变量加1,结果显示在第一个文本框中。另一个线程不断对另一个变量减1,结果显示在第二个文本框中。这两个线程之间没有交互,仅用于演示线程的创建。 2、 演示线程互斥,点“线程互斥” 按钮,创建两个线程,一个线程不断循环,每次循环对共享变量x做100次加1操作(这100次加1操作作为一个临界区CSa),另一个线程不断循环,每次循环对共享变量x做100次减1操作(这100次减1操作作为一个临界区CSb),结果显示在第三个文本框中。可以看到结
jthreadsynch
- Java线程间同步互斥,在实际的编程中,经常要处理线程间的同步互斥问题。Java 语言内在强大的多线程支持使得处理这类问题变得相对来说比较简单。本例将模仿经典的线程同步互斥例子——生产者和消费者问题,来演示 java 强大的多线程机制。生产者和消费者共享一个数据,当数据为0 时,消费者不可访问,生产者可访问数据,每次访问数据加1;当数据到达100 时,生产者唤醒消费者,同时自身不可访问数据,消费者可访问数据,每次访问数据减1,直到数据为0,消费者唤醒生产者,同时自身不可访问数据,如此循
Java-xianchengtongbuhuchi
- Java线程间同步互斥,在实际的编程中,经常要处理线程间的同步互斥问题。Java 语言内在强大的多线程支持使得处理这类问题变得相对来说比较简单。本例将模仿经典的线程同步互斥例子——生产者和消费者问题,来演示 java 强大的多线程机制。生产者和消费者共享一个数据,当数据为0 时,消费者不可访问,生产者可访问数据,每次访问数据加1;当数据到达100 时,生产者唤醒消费者,同时自身不可访问数据,消费者可访问数据,每次访问数据减1,直到数据为0,消费者唤醒生产者,同时自身不可访问数据,如此循
DeadLock
- 实现了死锁 正在学习进程同步的可以看一下 就知道什么是互斥锁了-Deadlocks are learning to achieve a synchronization process can see, we know what is the mutex
ATMCashMachines
- 线程同步和互斥 ATM存取一体机(线程同步互斥)-Thread synchronization and access exclusive ATM machine (thread synchronization mutex)
SaleTicks
- java模拟火车站卖票小程序 1.多线程设置卖票窗口数量 2.并发执行。互斥访问-Java simulation of the train station ticket program 1 multi thread set ticket window number 2 concurrent execution. Exclusive access
隋唐演义例子
- 线程同步,通过隋唐演义的例子说明!!!线程的同步与互斥(Thread synchronization is illustrated by examples of Sui and Tang dynasties!!! Synchronization and mutual exclusion of threads.)