搜索资源列表
threadtest
- 一个linux下的多线程编程的例子,主要是对互斥锁的介绍-Under a linux example of multi-threaded programming, mainly for the introduction mutex
pthread_mutex
- (可直接使用)用互斥锁写的一个打印机程序,通过加锁和解锁使得多台打印机可同步工作-(Can be used directly) with the exclusive lock to write a printer process, by locking and unlocking makes the work more than one printer simultaneously
Mutex
- 首先,调用 CreateEvent函数创建一个事件对象,该函数返回一个事件句柄。然后,可以设置(SetEvent)或者复位(ResetEvent)一个事件对象,也可以发一个事件脉冲(PlusEvent),即设置一个事件对象,然后复位它。复位有两种形式:自动复位和人工复位。在创建事件对象时指定复位形式。 自动复位:当对象获得信号后,就释放下一个可用线程(优先级别最高的线程;如果优先级别相同,则等待队列中的第一个线程被释放)。 人工复位:当对象获得信号后,就释放所有可利用线程。 最后,使
OS_MBOX
- easy u cos application for os mutex
The_concurrent_threads_with_synchronous_simple_exa
- 1创建一个打印循环的线程 2创建二个打印循环的线程 3用临界区来处理二个打印循环的线程 4用互斥体来处理2个打印循环的线程 5用信号量来处理2个打印循环的线程-1 create a printed circulation threads 2 create two print circulation threads 3 by the critical area to deal with two print circulation threads 4 with th
RadvisionVoIPStackOSAL_common
- Radvison OSAL - common system tool semaphore, mutex, ... 编写操作系统抽象层的参考-Radvison OSAL- common system tool semaphore, mutex, ...
LinuxMutex
- Linux环境进程间通信信号灯,信号灯与其他进程间通信方式不大相同,它主要提供对进程间共享资源访问控制机制。相当于内存中的标志,进程可以根据它判定是否能够访问某些共享资源,同时,进程也可以修改该标志。除了用于访问控制外,还可用于进程同步。-Mutex
tongbuhuchi
- 实现并发线程之间的同步和互斥问题 解决一类典型的进程间同步问题,如生产者-消费者问题,读者-写者问题等-To achieve synchronization between concurrent threads and the mutex problem solving process of a class of synchronization between the typical problems, such as the producer- consumer issues, reade
Thread
- Thread library. With Mutex class for deadlock management.
LT-ARM214X-ucosrenwujianhuchixinhaoliangtongxinshi
- 力天电子中LT-ARM214X学习板的UCOS任务间互斥信号量通信试验的配套源程序。-Power-day e-learning in the LT-ARM214X UCOS task board communication experiments between the mutex supporting source.
PV
- 用多线程实现“生产者-消费者问题”本作业要求设计并实现一个进程,该进程拥有一个生产者线程和一个消费者线程,它们使用N个不同的缓冲区(N为一个自定义的确定的数值,例如N=32)。你需要使用如下信号量:一个互斥信号量,用以阻止生产者线程和消费者线程同时操作缓冲区列表;一个信号量,当生产者线程生产出一个物品时可以用它向消费者线程发出信号;一个信号量,消费者线程释放出一个空缓冲区时可以用它向生产者线程发出信号; -Achieved with multi-threaded " producer
PV_handle
- 实现一个进程,该进程拥有一个生产者线程和一个消费者线程,它们使用32个不同的缓冲区。使用如下信号量: (1)一个互斥信号量,用以阻止生产者线程和消费者线程同时操作缓冲区列表; (2)一个信号量,当生产者线程生产出一个物品时可以用它向消费者线程发出信号; -Implement a process that has a producer thread and a consumer thread, they use 32 different buffers. Semaphore using
ThreadTest
- 測試lock, monitor, mutex, semaphore等執行緒用法-test use of lock, monitor, mutex, and semaphore in threads
LogModule
- 程序日志文件,windows Linux通用,完全的模块化 规范化编程 整合LINUX windows 线程库,互斥锁库. VC2005-Log files, windows Linux general, fully integrated modular standardized LINUX windows thread programming library, library mutex. VC2005
CMutexDemo02
- 线程间通讯,通过互斥锁同步技术实现,能够很好的解决线程调用的安全性问题-Inter-thread communication, synchronization by mutex implementation, the thread can call a good solution to security problems
bsd_mutex_imp
- useful mutex prgraming can be re used
Pthreads_Programming
- POSIX多线程程序设计标准讲解, 解释了所有api,同步互斥机制,还有多线程程序设计模型-POSIX standard multithreaded programming to explain, explain all the api, mutex synchronization mechanisms, as well as multi-threaded programming model
lesson-3
- 多线程程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何采用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。-The multi-thread programming, multi-threaded applications written easily appeared problems. Explain how the mutex object, using the mutex object to achieve the
SimuRWLock
- 通过Mutex封装实现的读写锁类。写锁优先于读锁。如果有写锁在等待,则读锁一直等待,直到写锁获取锁,并释放后才能获取。读锁是共享锁,写锁是独占锁。提供Mutex与临界区两种方式可宏切换实现,Mutex为系统内核对象,速度比较慢,但比较好控制。临界区速度快,但无进入临界区无超时时间,对时间控制不精确。 BOOL ReadLock(int timeout=INFINITE) BOOL TryReadLock(int timeout=INFINITE,BOOL bLock=TRUE)
RunInstance
- 本程序演示如何让程序只运行一次实例。两种实现方法:方法一是利用Process类判断进程;方法二是利用Mutex类。-This program demonstrates how to make the program run only one instance. Two implementation methods: Method One is the use Process class to determine the process method two is the use of Mute