搜索资源列表
MultiThread
- VC++ 多线程与聊天室程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何采用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。在接收线程函数中,遗忘了释放指针的操作,在随盘代码中已更正,特此说明。 -VC++ multithreaded program written with the chat room, multi-threaded applications prone to problems. Mutex objec
demostration_of_os
- os重要算法演示: 页面置换算法――最佳置换算法 页面置换算法――最近最久未使用(LRU)算法 并发进程和具有挂起状态的进程状态图 进程调度算法及银行家算法示例 进程的同步与互斥--信号量-demostration of os
phy
- 多线程解决哲学家就餐问题,利用操作系统中互斥量和信号量-Multi-threading to solve the dining philosophers problem, using the operating system mutex and semaphore
TSynchro_src
- 使用CriticalSection(临界区)和Mutex(互斥对象)实现的线程同步类。- Uses line regulation synchronization class which CriticalSection (critical zone) and Mutex (incompatible object) realizes.
apartment
- 线程互斥工具类.- Line regulation incompatible tool class
attach_20120629135520
- 本文介绍如何用互斥量实现让应用程序只运行一个实例-This article describes how to allow the application to run only one instance of mutex implementation
muxtesync1
- 程序首先创建生产者,然后创建消费者,他们从共享数据结构存取数据,使用互斥信号量,可以有效保护共享数据。-Process begins to create producers, consumers and then create them from the shared data structure to access data, the use of mutex semaphores, shared data can be effectively protected.
jchq
- (1) 掌握基本的同步与互斥算法,理解生产者消费者模型。 (2) 学习实用Windows2000/XP中基本的同步对象特性,掌握相关API的使用方法。 (3) 了解Windows2000/XP中多线程的并发执行机制,实现进程的同步与互斥。 -(1) master the basic synchronization and mutual exclusion algorithms, understanding of the producer consumer model. (2) lea
Chat
- 多线程程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何采用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。-Procedures for the preparation of multi-threaded, multi-threaded applications easily arise. Mutex object to explain how the use of mutex objects to achieve simu
MultiThread
- 多线程程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何采用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。-Procedures for the preparation of multi-threaded, multi-threaded applications easily arise. Mutex object to explain how the use of mutex objects to achieve simu
CPP_IOCP
- 2008/11/15号最新版本,以封装类形式提供TCP IOCP功能,改进先前版本的不足,以及BUG,增加UDP IOCP功能,增加了互斥访问的代码量,提高了运行稳定性;提供MFC扩展DLL(带lib和.h文件) -2008/11/15 its latest version in order to package category provided in the form of TCP IOCP functions, improve the shortcomings of previous ve
done
- 本系统的同步机构采用信号量上的P、V操作的机制;控制机构包括: (1)阻塞和唤醒操作; (2)时间片中断处理程序模拟时间片中断; (3)进程调度程序负责为各进程分配处理机。 系统中涉及了3个并发进程。它们之间的关系是: (1) 3个进程需要互斥使用临界资源S2。 (2)进程1和进程2又需互斥使用临界资源S1. 本系统在运行过程中随机打印出各进程的状态变换过程,系统的调度过程及公共变量的变化情况。-Synchronization of the sy
producer_and_consumer
- 操作系统同步与互斥的经典问题--生产者与消费者问题编程代码-Operating system synchronization and mutex classic problem- the issue of producers and consumers of programming code
pv_rw
- 利用Windows提供的API函数,用VISUALC++ 6.0编写程序,解决生产者与消费者问题,实现进程的互斥与同步 实验设计在同一个进程地址空间内执行的七个线程。三个生产者线程四个消费者线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。生产者线程生产物品时,若无空缓冲区可用,生产者线程必须等待消费者线程释放出一个空缓冲区;消费者线程消费物品时,若无满的缓冲区,消费者线程将被阻塞,直到新的物品被生产出来。-err
pv
- 信号量也称为信号锁,主要应用于进程间的同步和互斥,在用于互斥时,通常作为资源锁。信号量通常通过两个原子操作wait(P)和signal(V)来访问。wait操作使信号量的值+1,signal操作使信号量的值-1。本程序模拟了操作系统的pv操作-Semaphore is also known as signal lock, mainly used in inter-process synchronization and mutual exclusion, are used in mutually
pv2
- 信号量也称为信号锁,主要应用于进程间的同步和互斥,在用于互斥时,通常作为资源锁。信号量通常通过两个原子操作wait(P)和signal(V)来访问。wait操作使信号量的值+1,signal操作使信号量的值-1。本程序修改wait操作,使之能一次申请多个信号量-Semaphore is also known as signal lock, mainly used in inter-process synchronization and mutual exclusion, are used in
operat
- 操作系统试验——进程同步与互斥代码,希望对学习有帮助-Test operating system- the process of synchronization and mutex code, and they hope to learn helpful
11ThreadMutex
- mfc中多线程编程利用互斥量对同一资源的操作 -mfc in multi-threaded programming using the same amount of resources mutex operations
pv
- 在linux环境下c语言实现生产者消费者问题。多个生产者消费者互斥访问缓冲区-In linux environment c language producers consumer issues. Mutex consumers to visit a number of producers in the buffer zone
Producer_Customer
- 模拟操作系统中进程的互斥和同步,解决生产者和消费者问题。使用图形界面,可以在程序中方便的更改生产者和消费者个数,和模拟速度。-Simulation of the operating system mutex and synchronization process to resolve the issue of producers and consumers. Use graphical interface, you can change the process convenient number