搜索资源列表
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(互斥对象)实现的线程同步类。
javathread
- java 多线程同步-multithreaded synchronization
用线程做一个生产者-消费者同步问题
- 用线程做一个生产者-消费者同步问题 其实我是想用线程做一个生产者-消费者同步问题,现在已经成功了,贴出来,大家请指证. 我想让线程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
ThreadPoolProject
- 是我这几天写的一个C++线程池 注释很全 设计思路也写上去了 同步问题考虑的详细的不能在详细了-I write these days, a C++ thread pool comment is also written up the whole design concept of the synchronization problem can not be considered in more detail the
lockExample
- 多线程应用程序中如何使用LOCK语句实现同步,本例子模仿多人在多台提款机上同时取款的情况,演示多线程中的同步-Multi-threaded application how to use the LOCK statement to synchronize more than imitate the example of the multiple ATM withdrawals in the case at the same time, demonstrate the simultaneous mu
进程同步与互斥
- 依据生产者-消费者模型,在Windows年环境下创建一个控制台进程,在该进程中创建n个线程模拟生产者和消费者,实现进程(线程)的同步与互斥,分析、熟悉生产者消费者问题仿真的原理和实现技术。
mutex
- 在线程实际运行过程中,经常需要多个线程保持同步。这时可以用互斥锁来完成任务。(Threads often require multiple threads to keep synchronization during the actual operation of the thread. You can then use the mutex to complete the task.)
大文件MD5多线程 - 副本
- 同步文件夹,并且校验MD5。可以用来更新(Synchronize folders and verify MD5. Can be used to update)
1065_日志示例 (2)
- 用多线程处理日志的中间插件,可以绑定memo同步,会根据日期存储日志文件(Using multithreading to process log intermediate plug-ins, you can bind memo synchronization and store log files according to date)
thread_queue
- 线程池 使用 并行处理;多线程使用时最佳选择;收发同步等操作均可以使用(thread pool code;for multi-thread using)
双向链表的多线程安全读写
- C++实现了双向链表的操作 使用线程同步技术实现了线程的安全读写 提供了4种链表操作(插入、查询、替换、删除)的测试用例
WinSock2
- 一直很烦恼delphi附带的socket控件都不能满足我的设计逻辑需要,无奈只好自己动手封装了API,并且得到实践的证明(至少有两个服务器能稳定运行至今),本socket组件的多线程机制是安全的稳定的。 在服务器端,创建线程池,对于每个客户连接对应一个独立的线程类,可以在线程内处理客户数据,并可以线程间采用同步机制交换数据,为通讯服务器的建立提供了技术实现的基础。 U版本的经过了缺陷优化,虽然仅是经过了测试也还没有得到实践运行,但从以往成熟的结构演变而来的,问题应
多线程和数据缓存
- 进程和线程,同步,互斥,并发 数据缓存基本实现原理