搜索资源列表
Code
- 多线程程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何使用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。-Procedures for the preparation of multi-threaded, multi-threaded applications easily arise. Mutex on the object, how to use the mutex object to achieve the simu
phil.tar
- Producer-consumer problem solved with mutex, with no starvation.
TestSyn1
- //TestSyn的解决方法即将线程执行时锁住,不允许其他的线程操作 //锁定的意义在于在使用线程的过程中不会让其它线程使用,互斥锁-//TestSyn solutions implementation is about to lock the thread, the thread does not allow other operations// lock the significance of the use of threads in the process will not let
xianchengtongbu
- 在访问临界区的问题当中,因为临界区在一个时间只允许一个进程访问,因此为了解决同步问题,我们要用到线程同步机制。首先创建两个共享数据资源的并发线程。在没有同步控制机制的情况下,观察某些异常现象。针对这样的问题,采用两个解决方案:①利用Windows和mutex机制,②采用软件方案,并比较这两种方案的性能优劣。-During his visit to these critical areas, as critical a time in a process only allows access to
Multhread
- 一个很好的多线程编程的例子,主要用多线程阐述了操作系统里的线程互斥。-It is a very good example to explain the mutex of thread in operation system.
wei_linux
- 多线程编程基础(理论+实例) 包括互斥锁,条件变量,线程数据,信号量,线程属性。-The basis of multi-threaded programming (theory+ examples), including mutex locks, condition variables, thread data, semaphores, thread attributes.
wyPRODUCER
- 生产者消费者 用C语言模拟LINUX操作系统的生产者和消费者同步互斥的操作-Producer consumer LINUX operating system, C language simulation of producers and consumers mutex synchronization operation
mutex
- threaded programming. this program decides who will go inside the internet room according to their action files and the basic algorithm which states that managers and workers can t be in the room simultaneously. the size of the room is three. this wa
servicetest
- Service程序,有具体的安装,卸载。和一个应用程序连接,里面有Mutex,namedpipe,-Service procedures, there are specific installation, uninstall. And an application to connect, there are Mutex, namedpipe, etc.
Consumerandproducerproblem
- 生产者消费者问题 存在竞争互斥 死锁问题的解决 三个线程-Consumer producer problem competition problems mutex deadlock three threads
ADCTouch
- wince4.2 下s3c2410 下adc驱动和touch驱动,解决了wince下adc驱动和touch下同时加载后,造成触摸屏不好使,程序中加入了进程互斥保护,解决了触摸屏和ADC驱动不能同时使用的问题。-adc under wince4.2 under s3c2410 drive and touch-driven, solution to wince under the adc drive and touch at the same time under the load, the res
product_consumer
- 生产者消费者问题。使用3个信号量。其中2个信号量avail和full解决同步问题。还有一个mutex解决互斥问题-Producers of consumer issues. The use of three semaphores. One volume of two signals simultaneously avail and full settlement of the issue. There is also a solution to mutual exclusion mutex pr
sem_named_lock
- use named semaphore to lock and unlock the resource, like mutex, but it use between processed.
pthread
- 基于ARM9的Linux多线程应用程序。生产者写入缓冲区和消费者从缓冲区读数的具体流程,生产者首先获得互斥锁,并且判断写指针+1后是否等于读指针,如果相等则进入等待状态,等候条件变量notfull;如果不等则向缓冲区中写入一个整数,并且设置条件变量为notempty,最后释放互斥锁。消费者线程与生产者线程类似。-ARM9-Linux-based multi-threaded applications. Producers and consumers into a buffer from the
race_condition
- vxworks下解决共享数据竞争问题,在访问共享的数据前,使用互斥信号量对共享数据进行保护-vxworks share data to resolve the issue of competition in the access to shared data before the use of mutex semaphores to protect shared data
thread
- Thread Mutex 有关线程的一个程序-Thread Mutex related to a program thread
ChangeMutex
- VB 创建互斥体 阻止实例重复运行的例子-VB Change Mutex
CreateMutex
- 通过修改互斥体 达到重复启动程序的目的 !-Change the Mutex
MultiThread
- 实现两个售票线程的交替执行,通过互斥对象实现控制。-To achieve the implementation of two alternating ticket thread through the mutex object to achieve control.
huluwa
- linux互斥锁:说明互斥锁的用法-linux mutex