搜索资源列表
multi_thread.zip
- 3种多线程同步方式(Critical Section,Mutex,Event)的小例子
queuetest.zip
- 使用信号灯(semaphore),事件(Event),临界区(CriticalSection)进行线程同步的例子
thread.zip
- 3种多线程同步方式(Critical Section,Mutex,Event)的小例子
TSynchro_src.zip
- 使用CriticalSection(临界区)和Mutex(互斥对象)实现的线程同步类。
用线程做一个生产者-消费者同步问题
- 用线程做一个生产者-消费者同步问题 其实我是想用线程做一个生产者-消费者同步问题,现在已经成功了,贴出来,大家请指证. 我想让线程thread1和thread2按顺序显示,于是加了个信号量mysem,并且在新建两个线程的两个函数中进行P,V操作,来控制先后显示顺序-threads do with a producer-consumer Synchronization I actually want to do with threaded a producer-consumer synchroni
ThreadSync01
- 当你在程序中使用多线程时,这经常会用到,而且这些线程需要同时访问同一个资源时,这个可能性很大,这时候你就需要用到线程同步技术。有些线程以只读方式访问资源,我们叫它ReadThread,而有些线程却需要对资源进行写入,我们叫它WriteThread,我们暂时先这样称呼。如果一个线程对资源的访问是读写方式,我们把它看作是WriteThread。 -when you process multiple threads, which are often used, but these threads
Philosopher(new)
- 这是一道经典的线程同步问题——哲学家吃饭问题。这里结合了win32使得这个问题可视化了-This is a classic thread synchronization -- philosopher food problem. Win32 here combination of this makes the issue of visualization
同步套接字监听
- 使用同步套接字服务器的主机解析、主机绑定、端口监听、数据传输和数据接收等功能来实现电脑之间的通讯图的左边显示了...本文使用了一个线程来接收用户的网络通讯信息和监听端口的服务。-use synchronization socket server host parsing mainframe bundled, port monitoring, data transmission and data reception capabilities to achieve communication be
chip(单片机源程序)
- 好东西 关于单片机的一些重要的代码本程序是操作系统中比较典型的线程同步算法中的哲学家进餐问题,为防止死锁,采取了两个条件(筷子空闲)同时满足时再允许进餐的办法来解决。期望与大家一起学习交流!-good things on SCM some important source of this procedure is more typical operating system threads simultaneously count the law on the issue of the Dinin
javaduoxiancheng
- 基于java应用语言的多线程同步机制,实现了java中的同步多线程-language multithreaded synchronization mechanism, achieve a java of simultaneous multi-threading
Critical
- 通过火车售票系统的事例来讲解利用互斥对象实现线程同步,对初学线程同步很有帮助-train ticketing system through the use of examples to explain Mutex object to synchronize threads, thread synchronization for beginners helpful
multithreadingAudioLoop
- 如何利用临界区线程同步的方式完成声音的实时获取与回放任务-how critical thread synchronization of real-time voice of the completed acquisition and playback tasks
BarSvr
- 一个多线程,线程同步的例子, (debug一个目录和一个配置文件是执行程序使用的,所以没有删除)-more than one thread, thread synchronization example, (debug a catalog and a configuration file is used in the implementation of procedures, there is no delete)
c123
- LINUX环境下的线程同步和进程控制问题的源代码,希望大家-LINUX environment threads synchronization and process control of source code, we hope to s
threadCode
- 关于线程同步与异步套接字编程的了,应该是很不错得了-threads on the synchronous and asynchronous socket programming, it should be quite good had
func
- linux 下的进程同步 利用线程控制函数进行线程同步 主要利用信号-the use of thread synchronization process control function for the main thread synchronization signal
WinSock2
- 一直很烦恼delphi附带的socket控件都不能满足我的设计逻辑需要,无奈只好自己动手封装了API,并且得到实践的证明(至少有两个服务器能稳定运行至今),本socket组件的多线程机制是安全的稳定的。 在服务器端,创建线程池,对于每个客户连接对应一个独立的线程类,可以在线程内处理客户数据,并可以线程间采用同步机制交换数据,为通讯服务器的建立提供了技术实现的基础。 U版本的经过了缺陷优化,虽然仅是经过了测试也还没有得到实践运行,但从以往成熟的结构演变而来的,问题应