搜索资源列表
duoxiancheng
- 多线程同步实验代码。实现在linux的环境下多线程同步的通信-Multithreaded code synchronization experiments. Implementation in the Linux multithreaded synchronization under the environment of communication
SemaphoreSynch
- vVC++使用信号量同步线程的源码实例,通过源文件和对目标文件的复制,来演示利用信号量如何实现线程同步,这是同步线程方面又一个值得学习的技巧,在之前,我们可以使用互斥对象、临界区实现线程的同步问题-VC++ using semaphores to synchronize threads of source code examples, source files and copy the target file, and to demonstrate the use of semaphores h
MutexSynch
- 利用互斥对象实现线程同步,当勾寻使用互斥进行同步”按钮时,可启动一个线程向编辑框写入字符A,然后再启动一个线程向边界框写入字符B,可以看到只被执行一个线程,线程同步问题请下载源码参阅。-Use mutex thread synchronization when using a mutex to synchronize hook search "button, you can start a thread writes to the edit box the characters A, and t
EventSynch
- VC++利用事件对象实现线程同步的问题,示例代码实现两大功能:1、不使用事件同步启动两个线程向编辑框中写入不同字符;对于没有使用同步对象时,可能出现输出字符比使用同步对象时少的现象,这是因为线程同时对资源进行操作的结果。2、使用事件同步启动两个线程向编辑框中写入不同字符。-VC++ using the event object implements thread synchronization problems, sample code to achieve two major function
python_multi_thread
- python 多线程代码 包括线程锁,线程同步等-python multi thread study
DelphiXCTB
- Delphi多对象等待实现的线程同步 运行示例程序,并尝试在输入框中输入有效的目录名,然后 按下“添加到监视列表”按钮。 到被监视的目录中,做一些文件或者目录操作,例如创建文 件、更名等。会发现本程序将做出一些响应。-Delphi multi-threaded implementation of synchronization object wait
ProducerConsumer
- 生产者消费者问题(英语:Producer-consumer problem),也称有限缓冲问题(英语:Bounded-buffer problem),是一个多线程同步问题的经典案例。该问题描述了两个共享固定大小缓冲区的线程——即所谓的“生产者”和“消费者”——在实际运行时会发生的问题。生产者的主要作用是生成一定量的数据放到缓冲区中,然后重复此过程。与此同时,消费者也在缓冲区消耗这些数据。该问题的关键就是要保证生产者不会在缓冲区满时加入数据,消费者也不会在缓冲区中空时消耗数据。-Producers
ThreadSync
- 线程同步实验,可以做简单的线程同步,代码用的是c++。-Thread synchronization experiments, you can do simple thread synchronization code using c++.
clockkk
- 很好用的多线程同步锁,内部封装了vc的临界区对象,调用方便。-Useful multithreaded synchronization locks, vc internal encapsulates the critical section object, easy call.
multithread
- 多线程的实现,利用互斥对象实现线程同步,保证应用程序只有一个实例在运行。-Multi-threaded implementation, use mutex object that implements thread synchronization, ensure that only one instance of the application is running.
0.c.tar
- 经典的线程例子,使用 pthread 线程库创建两个线程,两个线程都要访问共享变量counter,按照源程序的逻辑,两个线程各循环 5 次,每次循环对 counter 变量加 1,最后打印的结果应该是 10。但是因为线程的特性,两个线程同步执行,所以结果是6,这是很有意思的事情。-The classic example of a thread, the thread using pthread library to create two threads, two threads must acc
Linux_sem
- Linux下信号量的使用方法,通过这个例子可以学会Linux下的线程同步方法-Under Linux semaphore usage, thread synchronization method by the example under Linux can learn
snake2
- linux下的小游戏,贪吃蛇,使用进程线程同步通信-Games under linux, Snake, using synchronous communication process threads
multi-threaded-elevator
- 利用多线程同步技术模拟电梯调度算法。主要用到了事件内核对象、临界区来让电梯服务线程、楼层请求正确地对请求队列进行访问、以及修改。-Simulation of elevator scheduling algorithm using thread synchronization techniques. Main event kernel object, a critical section is used to make service request threads, floors properl
MultithreadingRelated
- 多线程代码 经典线程同步互斥问题 生产者消费者问题 -Multithreading Related
phio
- 哲学家就餐问题是在计算机科学中的一个经典问题,用来演示在并行计算中多线程同步(Synchronization)时产生的问题。-Dining philosophers
CriticalSectionDemo
- 该例程摘自《Visual C++开发修行实录》,内容为使用临界区资源解决线程同步问题,其中使用的类为CCriticalSection-The routine is an excerpt Visual C++ development practice record , the contents of the use of critical resources to solve the problem of thread synchronization, which use the class
SemaphoreDemo
- 该例程摘自《Visual C++开发修行实录》,内容为使用计数器解决线程同步问题,其中使用的类为CSemaphore-The routine is an excerpt Visual C++ development practice record , the content of the counter used to solve the problem of thread synchronization, which use the class for csemaphore
www
- 基于s5pc100-A8板的智能仓储物联系统,1. M0作为前端信息采集器,通过温湿度、光感等模块实时采集节点所在仓库的环境数据,通过RFID射频刷卡模拟货物出入库,将采集到的数据和货物存储信息通过ZIGBEE无线传输给A8主控板进行数据分析。 2. A8是整个系统的逻辑处理核心,采用多线程架构,线程间使用全局变量、互斥锁、条件变量实现线程同步、互斥、唤醒等动作;分析M0发送来的数据,唤醒相应线程进行短信报警、摄像头抓拍、蜂鸣器、LED灯光报警、出入库等动作,并将数据存入数据库中; 3.
Thread-Synchronization
- VC++6.0中实现线程同步,分别采用互斥对象、临界区对象、事件对象以及信号量对象来实现对线程的同步操作,代码经过项目的检验。-VC++ 6.0 to implement thread synchronization, respectively mutex object, the critical section object, event objects, and semaphores objects to implement thread synchronization, the code