搜索资源列表
加锁法 解决两个进程合作累加数组
- 用加锁的方法解决两个进程累加数组的互斥问题-locked with two ways to solve the array of cumulative process Mutual Exclusion
RPG
- 用共享内存,信号灯,以及互斥锁实现进程,线程间的通信,来模拟三国问题-using shared memory, lights, and Mutex realization process, the communication between threads, to simulate the three issues
thrmgr
- linux下的线程池,其中使用了条件变量,互斥锁等保持线程同步的变量!
ThreadSynch
- VC++MFC多线程同步实例,信号量,互斥锁,事件,临界资源,,,,BY GDUT NETWORK 01
unixprogram
- Linux、多进程应用,共享内存,互斥锁应用
FileFind
- 多线程技术实现文件查找文件,速度超快(用线程互斥锁控制总线程数目)
多线程以及互斥锁
- 本文介绍多线程编程以及使用互斥锁进行线程同步 是多线程编程入门十分有益的资料
加锁法 解决两个进程合作累加数组
- 用加锁的方法解决两个进程累加数组的互斥问题-locked with two ways to solve the array of cumulative process Mutual Exclusion
RPG
- 用共享内存,信号灯,以及互斥锁实现进程,线程间的通信,来模拟三国问题-using shared memory, lights, and Mutex realization process, the communication between threads, to simulate the three issues
thrmgr
- linux下的线程池,其中使用了条件变量,互斥锁等保持线程同步的变量!-linux under the thread pool, which conditions the use of variables, such as maintaining Mutex variable to synchronize threads!
rwlock
- 实现了面向多线程应用程序的读写锁,支持并发读,互斥写-Realize a multi-threaded applications for the read and write lock to support the concurrent read, exclusive write
philosopher
- 用图形界面模拟如下场景:一个圆桌上有一个大碗面,5个盘子,每位哲学家一个,还有5把叉子。每个想吃饭的哲学家将做到桌子旁边分配给他的位置上,使用盘子两侧的叉子,取面和吃面。问题是:设计一个算法以允许哲学家吃饭。算法必须保证互斥(没有两位哲学家同时使用同一把叉子),同时还要避免死锁和饥饿。-Use graphical interface simulation scenario is as follows: a round-table, th
fl2
- 操作系统 实验二 进程同步与互斥 实现的基本的进程的同步、互斥,并用银行家算法实现与死锁预防-Second, the process of experimental operating system synchronization and mutex realize the basic process synchronization, mutual exclusion, and bankers with the deadloc
unixprogram
- Linux、多进程应用,共享内存,互斥锁应用-Linux, multi-process applications, shared memory, application Mutex
FileFind
- 多线程技术实现文件查找文件,速度超快(用线程互斥锁控制总线程数目)-Multi-threading technology to achieve a document to find documents, super-fast (with thread Mutex to control the total number of threads)
java_threaddemo
- 哲学家就餐是一个经典的Java多线程编程的实例,这是图形版。涉及到线程同步与互斥,临界区访问问题以及避免死锁的方法。 -Dining philosophers is a classic multi-threaded Java programming examples, this is the graphics version. Related to thread synchronization and mutual exclusion,
pthreads_applications
- 这是一个典型的多线程的实验,是用互斥锁来实现生产者与消费者的关系-This is a typical multi-threaded experiments Mutex are used to achieve the relationship between producers and consumers
signal_mutex
- 演示了linux中用信号量实现互斥锁的机制,用gcc编译后运行-Demonstrated using linux semaphore mutex lock mechanism, with the gcc compiled and run
经典的互斥锁线程例子
- 经典的互斥锁线程例子,使用 pthread 的互斥锁机制,使得程序运行的结果正确,使用 pthread 线程库创建两个线程,两个线程都要访问共享变量counter,按照源程序的逻辑,两个线程各循环 5 次,每次循环对 counter 变量加 1,最后打印的结果是 10。-The classic example of mutex thread using pthread mutex lock mechanism, so that the
Mutex
- 封装了Linux下的互斥锁、读写锁、条件锁以及防止死锁的策略(The mutex, read-write lock, conditional lock and deadlock prevention strategy of Linux are encapsulated)