搜索资源列表
p_c
- 利用线程通同步实现生产者消费者的问题。点“启动” 按钮,创建两组线程,一组为生产者,另一组为消息者-producer and consumer
3q_tony
- AE开发双线程加载窗体 使用AE9.3+.net3.5 可以同步进行窗体二三维同步显示-use AE to load windows
MultiThread
- 多线程程序的编写,多线程应用中容易出现的问题。互斥对象的讲解,如何使用互斥对象来实现多线程的同步。如何利用命名互斥对象保证应用程序只有一个实例运行。应用多线程编写网络聊天室程序。-Writing multithreaded programs, multi-threaded applications prone to problems. Mutex object to explain how to use a mutex object to the multi-thread synchroniza
philosophers
- 用VC编程创建五个线程,模拟实现五个哲学家来竞争五只筷子(资源)去吃通心面的情况,必须确保五个线程的同步和互斥,并且在运行时不会产生死锁。-Creates five threads with VC programming, simulation five philosophers to compete for the five chopsticks (resources) to eat macaroni, must ensure that the synchronization and mutu
ThreadCreate
- 例子中包含了两种创建线程的方法:一种是创建用户自己的线程子类,另一种是在用户自己的类中实现Runable接口。线程优先级以及同步。 -Two examples are included to create threads: one is to create your own thread subclass, the other is a user interface to achieve Runable own class. Thread priority and synchronizati
MultiThread1
- Win32 SDK函数支持进行多线程的程序设计,并提供了操作系统原理中的各种同步、互斥和临界区等操作。Visual C++ 6.0中,使用MFC类库也实现了多线程的程序设计,使得多线程编程更加方便。该例程为Windows API 编写的一个多线程程序实例。-Win32 SDK function supports multi-threaded programming, and provides a variety of operating system principles in synchron
Java-multi-threading-mechanism
- 由于在Java语言提供了线程支持,系统资源的利用率得以提高,系统性能得到改善。文章在分析Java多线程的基础上,对如何实现一个多线程,如何实现同步,进行了简要分析。-Since the Java language provides threading support, improved utilization of system resources, system performance is improved. On the basis of analysis of multi-threade
Java-Virtual-Machine
- Java虚拟机使用锁机制来实现多线程共享数据结构的同步.锁机制维护的临界区通常对共享数据结构只进行读操作.只读锁是指当某个线程持有锁在只读临界区时,其他线程可以直接进入只读临界区而无需等待.只读锁能极大地提高锁机制的同步性能.Java虚拟机的锁机制可分为轻量级锁和重量级锁两层,当线程冲突时从轻量级锁转向重量级锁.本文分别从轻量级锁和重量级锁两个层次分别进行只读锁优化.轻量级锁的只读优化算法可以减少原子操作的开销;重量级锁的只读优化算法则可以使多个线程同时在只读临界区中.最后在Java虚拟机Hot
mutex
- 本实验讨论临界区问题及其解决方案。实验首先创建两个共享数据资 源的并发线程。在没有同步控制机制的情况下,我们将看到某些异常现象。 针对观察到的现象,本实验采用两套解决方案: • 利用Windows 的mutex 机制 • 采用软件方案 然后比较这两种方案的性能优劣。-In this study, discuss problems and solutions critical region. Experiment first create two share
programming-cycle-CDT-Statute
- 摘 要:介绍了在Windows环境下,利用DELPHI软件与WIN32 API函数结合实现部颁CDT循环规约的方法,完整地给了实现CDT循环规约的全过程,可满足为电力系统高级应用软件提供共享数据资源的需要。 关键词:Windows环境;CDT循环规约;DELPHI;线程;同步-Abstract: In the Windows environment, using DELPHI software and WIN32 API functions combined cycle method mini
ComQueue
- 带同步互斥的读写队列源码,用与多线程编程中实时性操作-a raw queue program with mutex and semphore using between threads
Mutex
- VC2010-08-25-VC++6.0下利用互斥量同步线程来实现文件读取进度条-VC2010-08-25-VC++6.0 under mutex synchronization of threads to use for file reading progress bar
Segmented-parallel
- 并行是指时间上的同时处理。并发是将程序分成多个线程分段执行,通过调度线程执行顺序,来实现多个程序对于用户来说是同时运行的,就像你可以听歌的同时修改文档一样。但具体到线程级别的话,这些线程实际上是线性执行的,只不过执行消耗的时间片实在太短,人感觉不出来,只是觉得两个程序都在正常运行。目前能算得上并行的话也就多核技术了,而且还得解决同步问题,只能说更加接近并行的概念。-Parallel processing is the same in time. Concurrency is staging a
QQ_V0524File
- 利用多线程知识实现聊天、传文件的功能,掌握多线程、同步与异步等网络编程知识-Use multithreading knowledge to achieve functional chat, transfer files, master multi-threaded, synchronous and asynchronous network programming knowledge
CHATROOM
- 摘要:Java源码,网络相关,聊天程序 一个Java聊天程序服务端和客户端程序,C/S结构,ChatServer 类实现了一个聊天室服务器端, 此类有一个构造器, 在构造器中使用newServerSocket()建立一个Socket 连接。RunServer()方法中运行聊天服务,通过Socket 类的getInetAddress().getHostName() 方法获得主机名, 建立新的ChatHandler 对象实例, 在synchronized (clients)中取得与客户端的同步。
2
- 这篇讲述线程之间存在竞争时如何确保同步并且不发生死锁-This tells the thread between the presence of competition and how to ensure synchronization deadlocks do not occur
CriticalSectionSynch
- Visual C++利用临界区同步线程的一个实例代码,测试前你可试着勾寻使用临界区”功能按钮,然后依次点击启动一个线程向编辑框写入字符A、启动一个线程向编辑框写入字符B,查看线程的运行变化,本例对于研究临界区同步线程问题,可起到很好的理解作用。-Visual C++ use thread synchronization in a critical region of code examples, you can try to hook before testing the use of a cr
multi-thread
- linx多线程编程,实现一个多线程生产者消费者模型,用信号量处理线程间的同步和互斥问题。-Linx multithreaded programming, the realization of a multi thread producer consumer model, process synchronization and mutual exclusion problem among threads using signal volume
vbthread
- VB.NET thread多线程委托托管的源码实现,委托方法,不用屏蔽错误,并可跨窗口运行,操作form2的label,可以两个窗口同步运行(带一个参数),或者"三个线程一起,两个窗口同步运行(带二个参数,一个参数是对象,一个是数据),委托方法,不用屏蔽错误,并可跨窗口运行。-The principal method, VB.NET thread multi thread custody of the source, not shield the error, and can run acros
Produtor---consumidor
- 生产者-消费者问题(操作系统)原理与实现: it 分类: Computer Science 生产者-消费者问题是一个经典的进程同步问题,该问题最早由Dijkstra提出,用以演示他提出的信号量机制。在同一个进程地址空间内执行的两个线程生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。当生产者线程生产物品时,如果没有空缓冲区可用,那么生产者线程必须等待消费者线程释放出一个空缓冲区。当消费者线程消费物品时,如果没有满的缓冲区,那