搜索资源列表
synchronizedTest
- 通过一个多线程抢票的例子。来模拟多线程的同步。简单,通俗易懂-By way of example a multithreaded grab votes. To simulate multi-thread synchronization. Simple, easy to understand
ThreadCommuncation
- Java中线程通信学习要点及源码练习,ResourceDemo学习线程通信,ResourceDemo2学习等待、唤醒机制,ResourceDemo3学习同步机制和代码优化,ProcusDemo学习线程中的一些问题,ProCusDemo2学习java1.5后中的问题解决办法,StopThreadDemo学习停止线程,最后ThreadTest测试一下所学内容。-Java s thread communication learning point and source code.ResourceDem
002_[2015-03-23]_cPP-Concurrency
- C++11中的同步机制,C++11的线程的同步、异步和线程间的通信的学习。-Synchronous, asynchronous communication and learning between threads in C++ 11 synchronization mechanism, C++ 11 threads.
MultipleThreads_Sync
- MFC多线程编程,利用互斥区实现两个线程的同步操作-MFC multithreaded programming, using exclusive zone to achieve synchronous operation of the two threads
110104010104
- 解决的主要问题 (1)MFC界面设计 (2)模拟生产者消费者的互斥操作 (3)各信号量及互斥体的使用 线程 线程是程序独立运行的基本单位,一个程序通过执行多个线程可以提高机器本身资源的利用率,同时也可以完成多任务并行运行的操作,多线程可以实现并行处理,避免了某项任务长时间占用CPU时间。 互斥体 互斥体与临界区很相似,但是使用时相对复杂一些,它不仅可以在同一应用程序的线程间实现同步,还可以在不同的进程间实现同步,从而实现资源的安全共享。 信号量 信号量是一个
ticket
- 这是一个java线程的买票系统,解决同步问题.-This is a java thread to buy a ticket system to solve the problem of synchronization.
TestThread
- 测试多线程的同步问题,让你理解多线程编程的思路代码-To test the synchronization of multiple threads, so that you can understand the idea of multi-threaded programming code
The-asynchronous-call
- 可实现异步调用子程序,跨线程访问控件,实现同步调用-The asynchronous call
Mutex
- 一个互斥对象的应用,多线程保存同步的时候需要使用的代码-A mutex application, multi-thread synchronization to save when you need to use the code
ThreadCMutex
- 控制台程序中CMutex简单使用实例。创建两个线程使线程能够达到同步。-Console application CMutex simple example. Create two threads to synchronize the threads.
ThreadCritical
- 控制台程序中Critical简单使用实例。创建两个线程使线程能够达到同步。-Console application Critical simple example. Create two threads to synchronize the threads.
ThreadEvent
- 控制台程序中Event简单使用实例。创建两个线程使线程能够达到同步。-Console application Event simple example. Create two threads to synchronize the threads.
ThreadMutex
- 控制台程序中Mutex简单使用实例。创建两个线程使线程能够达到同步。-Console application Mutex simple example. Create two threads to synchronize the threads.
TreadCCritical
- 控制台程序中CCritical简单使用实例。创建两个线程使线程能够达到同步。-Console application CCritical simple example. Create two threads to synchronize the threads.
ThreadCevent
- 控制台程序中CEvent简单使用实例。创建两个线程使线程能够达到同步。-Console application CEvent simple example. Create two threads to synchronize the threads.
ThreadRun
- 利用现有操作系统提供的同步机制编程实现无线程同步控制、Windows同步线程、Peterson同步线程并发运行,并用程序运行时间长短比较两种同步机制。-The use of synchronous programming mechanisms existing operating system to provide wireless synchronization control process, Windows thread synchronization, Peterson synchron
PASSTHRU
- 在windows提供的PASSTHRU程序中增加简单的线程,并同步。-Increase the simple thread in windows provided PASSTHRU program, and synchronization.
pv_rw
- 利用Windows提供的API函数,用VISUALC++ 6.0编写程序,解决生产者与消费者问题,实现进程的互斥与同步实验设计在同一个进程地址空间内执行的七个线程。三个生产者线程四个消费者线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。生产者线程生产物品时,若无空缓冲区可用,生产者线程必须等待消费者线程释放出一个空缓冲区;消费者线程消费物品时,若无满的缓冲区,消费者线程将被阻塞,直到新的物品被生产出来。-err
pv_rw
- 利用Windows提供的API函数,用VISUALC++ 6.0编写程序,解决生产者与消费者问题,实现进程的互斥与同步实验设计在同一个进程地址空间内执行的七个线程。三个生产者线程四个消费者线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。生产者线程生产物品时,若无空缓冲区可用,生产者线程必须等待消费者线程释放出一个空缓冲区;消费者线程消费物品时,若无满的缓冲区,消费者线程将被阻塞,直到新的物品被生产出来。-err
consumer_producer
- 使用了三个信号量: empty (以记录有多少空位)、full (以记录有多少满位)以及mutex (二进制信号量或互斥信号量,以保护对缓冲插入与删除的操作)。对于本项目, empty 与full 将采用标准计数信号量,而mutex 将采用二进制信号量。生产者与消费者作为独立线程,在empty、full、mutex 的同步前提下,对缓冲进行插入与删除。 -Producer and consumer problem of operating system.