搜索资源列表
sem_syn
- 通过两个信号量来实现两个线程间的同步,完成了互斥功能.-through two signals to achieve volume between the two threads simultaneously, and completed the mutex function.
Philosophers
- 哲学家进餐问题,进程是独立参与分配资源的最小单位,在有线程的OS中,线程是运行的最小单位, 课堂所述进程之间的同步与互斥,实际上是属于不同进程的线程间的同步与互斥,当 然,属于同一进程的不同线程一样存在同步与互斥,其控制同步与互斥的原理跟进程 是一样的-dining philosophers problem, the process is independent participation in the allocation of resources as the smallest
zhexue05
- 进程同步,哲学家进餐共享临界区变量.定义信号量机制控制进程不互斥!-process synchronization, philosopher dining area share critical variables. Definition signal to the process control mechanism not contradict!
jiou05
- 奇偶哲学家通过信号量机制控制进程的同步和互斥访问临街区域,保证正常执行!-signal through the volume control mechanism for the process of synchronization and mutex visit to the region along the street to ensure normal execution!
philosophers05
- 经典进程同步和互斥另类WINDOWS解法.定义信号量机制在WINDOWS下完成哲学家进餐问题.-classical process synchronization and mutex WINDOWS alternative solution. Volume definition signal mechanism in Windows complete the dining philosophers problem.
Lesson15Code
- 多线程程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何采用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。-multithreaded program, multithreaded applications easily occur. Mutex object on how to use mutex object to the multi-thread synchronization. How to use object n
memorymappedfilesyntaxoperation
- 6.如何使用内存映射文件实现多个程序间互斥运行?-6. How to use memory-mapped file to achieve a number of procedures among mutually exclusive operation?
ossystem
- 基于DOS的多任务系统的实现 1. 用C语言完成线程的创建和撤消,并按优先权加时间片轮转算法对多个线程进行调度; 2. 改变时间片的大小,观察结果的变化。思考:为什么时间片不能太小或太大; 3. 假设两个线程共用同一软件资源(如某一变量,或某一数据结构),请用记录型信号量来实现对它的互斥访问; 4. 假设有两个线程共享一个可存放5个整数的缓冲,一线程不停的计算1到50的平方,并将结果放入缓冲中,另一个线程不断的从缓冲中取出结果,并将他们打印出来,请用记录型信号量实现这一生产者和消
multithreadchat
- 多线程程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何使用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。-multithreaded program, multithreaded applications easily occur. Mutex object explain how to use the mutex object to the multi-thread synchronization. How to use
RandW
- 读者-写者问题源代码,实现进程之间的同步与互斥 -reader-written source code problem, the realization of the process of synchronization and mutex
XTalk
- 本程序演示了使用事件、互斥体、和内存共享的内存映射块,以在其自身的不同副本之间通信。-demonstration of the procedure used, contradict body, and memory sharing memory mapping block, to in their own copies of communications between different.
libshd
- SH_Object libSH的基类 SH_String String类 SH_Array 数据结构Array类 SH_Stack 数据结构Stack类 SH_Queue 数据结构Queue类 SH_List 数据结构List类 SH_Hash 数据结构Hash类 SH_Tree 数据结构Tree(AVL)类 SH_Lock 互斥Lock类 SH_Serial 串口类 SH_Socket 套接字类 SH_Tcp TCP类
EnTeHandle_1
- EnTeHandle可以让你查看当前进程打开的句柄。句柄可以是文件、事件、互斥信号量等等。此外,你也可以查看进程当前打开的DLL,线程信息,进程内存,甚至是动态更新。也可以搜索dll和句柄-EnTeHandle can let you see the current process opened handle. Can handle documents, events, etc. mutex semaphores. In addition, you can view the current pr
CMULChat
- 采用互斥对象来实现多线程的同步应用多线程编写的网络聊天室程序-use mutex object to the multi-threaded multi-thread synchronization application prepared by the network chat room procedures
Productor_Consumer
- 1、在Windows系统环境下,用Windows API编程实现操作系统经典同步问题。 2、理解和运用信号量、PV原语、进程间的同步互斥关系等基本知识。 3、在实习过程中,加强对于进程同步概念的理解,对于实验进行分析。 4、掌握在Windows环境下多线程(进程)程序设计的一些基本方法。 -1, in the Windows system environment, Using Windows API programming operating system classic syn
vc_jiqiaoshili_part4
- Visual.C++程序设计技巧与实例--配套光盘 第4章 进程和线程 本章共有8个实例: 1. Process创建和终止进程 2. WorkerThread创建工作者线程 3. UIThread用户界面线程示例 4. Event使用事件对象来实现线程的同步 5. Thread使用临界区对象来实现线程的同步 6. Mutex使用互斥量对象来实现不同进程间的线程同步 7. Semaphore使用信号量对象实现线程的同步 8. MutiThread多线程任务调
RPG
- 用共享内存,信号灯,以及互斥锁实现进程,线程间的通信,来模拟三国问题-using shared memory, lights, and Mutex realization process, the communication between threads, to simulate the three issues
readerwriter.cpp
- 读者—写者问题的读写操作限制(包括读者优先和写者优先): 1)写—写互斥,即不能有两个写者同时进行写操作。 2)读—写互斥,即不能同时有一个线程在读,而另一个线程在写。 3)读—读允许,即可以有一个或多个读者在读。 -readers-the problem was the restrictions on reading and writing operations (including readers wrote priority and priority) : 1) w
zhexuejiajincan
- 在Linux环境下,用C语言和信号量机制实现了五个哲学家进餐的互斥关系-the Linux environment, the C language and signal mechanism to achieve the volume of five philosophers dining mutex relations
RW
- 读者写者问题源码.包含我的注释. 没有加入工程文件. 只有一个R&W.cpp.在vc++6.0下编译成功. 在Windows 2000 环境下,创建一个包含n 个线程的控制台进程。用这n 个线程来表示n 个读者或写者。每个线程按相应测试数据文件的要求,进行读写操作。请用信号量机制实现读者-写者问题(读者优先)。 读者-写者问题的读写操作限制: 1)写-写互斥; 2)读-写互斥; 3)读-读允许; 读者优先的附加限制:如果一个读者申请进行读操作时已有另一读者正在进行