搜索资源列表
3-1
- 进程的同步与通信 多线程编程中关键的一步是保护所有的共享资源,工具主要有互锁函数、临界区和互斥信号量等;另一个实质性部分是协调线程使其完成应用程序的任务,为此,可利用内核中的事件对象和信号。-Process Synchronization and Communication Multi-threaded programming is a key step in the protection of all of the shared resources, tools, mainly i
Producers
- (1)操作系统中允许同时有多个进程并发进行,进程对共享资源存在互斥或者协作关系。其中生产者进程产生信息资源,可以是计算进程。消费者进程使用信息,它可以是输出打印进程,对于缓冲区生产者与消费者进程互斥使用,其次,消费者进程依赖于生产者产生的资源,如果尚未得到满足,则必须等待生产者信号的唤醒; (2)本程序运行必须设置模拟系统缓冲区的个数以及系统进程的个数,对于每个程序,还必须设置其属性,即是生产者或者消费者,由简单的数字1和2表示。对于缓冲区的设置和进程个数及属性的设置可以根据需要模拟互斥和贡
ProcessSynchronizationAndMutualExclusion
- (1)操作系统中允许同时有多个进程并发进行,进程对共享资源存在互斥或者协作关系。其中生产者进程产生信息资源,可以是计算进程。消费者进程使用信息,它可以是输出打印进程,对于缓冲区生产者与消费者进程互斥使用,其次,消费者进程依赖于生产者产生的资源,如果尚未得到满足,则必须等待生产者信号的唤醒; (2)本程序运行必须设置模拟系统缓冲区的个数以及系统进程的个数,对于每个程序,还必须设置其属性,即是生产者或者消费者,由简单的数字1和2表示。对于缓冲区的设置和进程个数及属性的设置可以根据需要模拟互斥和贡
jinc
- windows进程模拟小程序 模拟进程状态转换 进程互斥 和进程通信 vc++ mfc-windows process simulation program to simulate the process of the small state of the conversion process mutual exclusion and process communications vc++ mfc
MultiThread
- 一个多线程编程的例子,在这里可以看到两个子线程的分别执行,抢占和互斥-Example of a multi-threaded programming, where you can see the difference between two sub-thread execution, to seize, and mutually exclusive
vcthreads
- 10个VC++多线程操作实例源代码,内容涉及如何安全终止线程、如何创建UI线程、如何创建Worker线程、如何等待线程结束、如何挂起和恢复线程、如何获得线程的退出码、如何使用互斥量、如何使用临界区、如何使用信号量等内容,入门者更应该看一看,多线程的使用很广泛,可以提高程序效率。 -10 VC++ source code examples of multi-threaded operation, which relates to how to safely terminate the thre
yunxingyici
- delphi用互斥变量实现程序限制运行一次,练习用 !-delphi program with mutually exclusive variables to achieve limited operation time, practice with!
Reader_and_Writer
- 操作系统中读者写者算法的实现,涉及到系统互斥资源的争用和释放问题,初学者可以参考-Readers to write the operating system the realization of those algorithms, involving mutual exclusion of resources to the system and the release of contention issues, beginners can refer to
ThreadTest3
- Windows互斥进行线程同步程序源代码,经典的线程互斥同步代码-Thread
Mutex_Test
- 针对C#,对互斥进行了测试和演示,如果想初步了解的,可以看一看。-Mutex_Test Mutex_Test
readerwriter
- 读者写者问题C++解法,使用互斥信号量,写者线程优先,共有3个读者2个写者-Similar to the barbers problem,the program use semaphore to solve the reader/writer problem.Two semaphores are involved:m_h,db_h,used as a counter and mutex between 2 writers. Main function create 3 reader thre
ProducerAndConsumer
- 生产者消费者源程序,实现进程间同步和互斥-Producer consumer source, to achieve inter-process synchronization and mutual exclusion
ThreadMutex
- 线程同步之互斥对象,希望能给初学者提供帮助-The mutex thread synchronization objects, could help beginners
2009103015231441894
- 10个VC++多线程操作实例源代码,内容涉及如何安全终止线程、如何创建UI线程、如何创建Worker线程、如何等待线程结束、如何挂起和恢复线程、如何获得线程的退出码、如何使用互斥量、如何使用临界区、如何使用信号量等内容,入门者更应该看一看,多线程的使用很广泛,可以提高程序效率。 -10 VC++ source code examples of multi-threaded operation, which relates to the safe termination of the thre
Dining
- 进程间的同步互斥问题,通过进程间的通信,完成对共享资源的访问。-process
hu_chi_dui_xiang
- 互斥对象的基本使用方法shiyong CreateThread CreateMutex ReleaseMutex(hMutex) CloseHandle() CloseHandle() Sleep() -hu chi duixiang shiyong CreateThread CreateMutex ReleaseMutex(hMutex) CloseHandle() CloseHandle() Sleep()
vcMultiThread
- VC++ 多线程与聊天室程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何采用互斥对象来实现多线程的同步。 -VC++ multi-threaded programs written with the chat rooms, multi-threaded applications prone to problems. Mutex object' s explain how to use multi-threaded mutex object to achieve synchr
MultiThread
- VC++ 多线程与聊天室程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何采用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。在接收线程函数中,遗忘了释放指针的操作,在随盘代码中已更正,特此说明。-VC++ multi-threaded programs written with the chat rooms, multi-threaded applications prone to problems. Mutex objec
print
- 简单实现临街资源互斥的使用,用四个全局变量实现互斥。-Simple resources to achieve mutually exclusive use of the street, with four global variables to achieve mutually exclusive.
Mutex
- 一个对于mutex :互斥信号的一个例子-A example for mutex.