搜索资源列表
multi_thread.zip
- 3种多线程同步方式(Critical Section,Mutex,Event)的小例子
thread.zip
- 3种多线程同步方式(Critical Section,Mutex,Event)的小例子
3ThreadDoc
- 多线程----介绍3种多线程同步方式(Critical Section,Mutex,Event)例子-introduced three kinds of multithreaded synchronization mode (Critical Section, Mutex, Event) example
vcthreads
- VC 多线程操作实例源代码 如何安全终止线程 如何创建UI线程 如何创建Worker线程 如何等待线程结束 如何挂起和恢复线程 如何获得线程的退出码 如何使用互斥量 如何使用临界区 如何使用事件 如何使用信号量 有此实例代码,多线程无忧!-VC multi-threaded operating source code examples how to safely terminate a thr
Tokenringalgo
- Token ring algorithm, using the concept of tokens to eliminate the problem of critical section ie preventing deadlock condition.
multi_thread
- 3种多线程同步方式(Critical Section,Mutex,Event)的小例子-3 multithreading synchronous mode (Critical Section, Mutex, Event) small example
pv
- 设有父子2个进程共享一个临界资源,每个进程循环进入该临界区3次:父进程每次进入临界区后显示“prnt in”,出临界区则显示“prnt out”;子进程每次进入临界区后显示“chld in”出临界区则显示“chld out”。观察运行结果,应该是一个进程出来后另一个才能进去。 -Father and son with two processes share a critical resource in each process cycle to enter the critical sect
Critical
- 定位临界区(critical section)导致的死锁。本程序用示例演示死锁的产生过程,和解决办法。-Do not use Thread Checker,Thread Profiler,WinDbg, but VC++.
SemaDemo
- 英国帝国理工学院电脑系多线程课程教学材料之四 ---- 用Semaphores互斥访问-The program uses a semaphore to ensure that it is not possible for threads to enter their critical sections at the same time. The critical section is represented by a light blue (cyan) colour. To execute in
CriticalSection
- this a Critical Section test program. code is simple but easy to learn.-this is a Critical Section test program. code is simple but easy to learn.
JAVA_RMI_Win
- Client/Server application. This application was written using RMI Java. It resolve "access to critical section " example problem. To use this program you should change in *.bat / *.sh files the java path according in your computer -Client/Server
ThreadTest
- 模拟多进程共享临界资源 1、实现两个进程模拟进入临界区的用户进程,当需要进入临界区时,显示:“进程x请求进入临界区…”,同时向管理进程提出申请;申请返回,表示进入了临界区。在临界区中等待一段随机时间,并显示:“进程x正在临界区…”;当时间结束,显示:“进程x退出临界区…”,同时向管理进程提出退出申请;当申请返回,显示:“进程x已退出临界区。” 2、一个进程作为原语的管理进程,接受其他进程的临界区进入请求:如果允许进入,则设置相应变量,然后返回;如果不允许进入,则进入循环等待,直到允许为止
mune
- 线程同步机制。 互斥器的功能和临界区域很相似。区别是:Mutex所花费的时间比Critical Section多的多,但是Mutex是核心对象(Event、Semaphore也是),可以跨进程使用,而且等待一个被锁住的Mutex可以设定TIMEOUT,不会像Critical Section那样无法得知临界区域的情况,而一直死等。-Thread synchronization mechanism. Mutex' s function and the critical region is
Critical_Sections
- Critical section. Usefull in multithreading. THis is a small demo of it.
CriticalSecitonThreadSyn
- 一个使用临界区对象(CriticalSeciton)实现线程同步的例程,来自于Visual C++范例大全-The use of a critical section object (CriticalSeciton) to achieve thread synchronization routines, from the Visual C++ examples of Daquan
DME
- Java program will spawn n (distributed) processes Pi, 0 ≤ i < n, each one looping forever. Each loop iteration is a loop interval. In every loop interval Pi does the following: − It sleeps for a random amount of time [3, 4) seconds W
CriticalSection
- critical section usage
Java_monitors
- Parralel programing. Monitors usage example in Java. Monitors are used to protect critical section
Critical-section
- 临界区互斥问题!!Critical section mutual exclusion problem-Critical section mutex problem! ! Critical section mutual exclusion problem
critical-section
- 临界区介绍以及多线程、多进程临界区调度原则、代码示例-The critical section describes scheduling principles, code samples, and multi-threaded, multi-process critical section