搜索资源列表
threadpool2
- windows下线程池的使用,对学习windows的线程机制很有用处-windows Thread pool use, to learn windows threads useful mechanism
Register_ThreaPool
- 线程的创建、销毁和调度本身是有代价的,如果一个线程的任务相对简单,那这些时间和空间开销就不容忽视了,此时用线程池就是更好的选择,即创建一些线程然后反复利用它们,而不是在完成单个任务后就结束。-thread creation, destruction and scheduling itself is a cost, if the threads of a relatively simple task. That time and space costs can not be ignored, th
Threading
- 此示例演示下面的线程处理技术。有关更多信息,请参见线程处理创建、启动和终止线程使用线程池线程同步和互交-This example demonstrated the following thread processing technology. For more information, please see threads creation, initiation and termination of the use of threads thread pool thread synchroni
Socket
- 一个用线程池的Socket 可以 自定义 线程个数
DBPool
- 包含C++的ADO包装和ADO连接池管理。可以使用任何类型的数据库类型,包含存储过程的处理,并对执行进行了优化;通过INI设置数据库链接属性,连接池对象是管理数据库链接的对象,适用于多线程、多次数据库访问。
TCP实现客户服务器聊天程序
- 操作系统课程设计任务书 一、设计题目:多机进程通信 应用Socket进程通信技术编写聊天室程序,实现基于服务器的并发多机信息转发。如果各客户端在线则可以实时聊天、发送接收文件,如果某客户端离线,则发送给他的消息可由服务器端进行内容缓存,待重新连线后可以自动接收通过服务器转发的信息或文件。缓存与转发的控制算法可参考操作系统课程中生产者消费者进程同步方法、缓冲池技术等相关理论。 二、设计思路和功能的详细描述 采用TCP协议,所以属于客户机/服务器模式,因此需要聊天服务
Work_Queue_demo
- 本程序演示如何使用线程池。同时生成多个线程,但只有指定数目得线程在运行。-This procedure demonstrates how to use the thread pool. At the same time generate multiple threads, but only a specified number of threads running.
ProducersAndCustomers
- 通过研究Linux的线程机制和信号量实现生产者消费者(Bounded Buffer)问题的并发控制。 通过n个缓冲区组成缓冲池共同完成“生产和消费”任务,每个缓冲区存放一个产品,生产者将生产出的产品放入空缓冲区;消费者从满缓冲区中取出产品。一旦所有缓冲区均满时,生产者必须等待消费者提供空缓冲区。另外,对所有生产者和消费者线程来说,缓冲池是临界资源,即任何一个线程在对某个缓冲区进行“存”和“取”操作时须和其他线程互斥执行。 -By studying the Linux thread and
7Complete
- 本实验模拟使用缓冲池完成输入输出过程。 (2)系统中完成输入输出过程的四个线程: 收容输入hin:将设备输入的数据写到缓冲池的收容输入工作缓冲区。 提取输入sin:将缓冲池中的提取工作缓冲区的数据提取给CPU。 收容输出hout:将CPU输出的数据写到缓冲池的收容输出工作缓冲区。 提取输出sout:将缓冲池中的提取输出工作缓冲区的数据提取给设备。 -This experiment simulated the use of input and output buffer p
易语言的高性能端口转发器
- 易语言的高性能端口转发器,里面有两个,一个IOCP的一个事线程池的。
ubbjool
- 一个好用的线程池 A nice thread pool-A thread pool to use A nice thread pool
reqovrvedetermine
- windows平台下的线程池软件,对频繁调用但是处理时间很短的线程有很好的效果,-Thread pool Windows platform software, for frequent calls but processing time is very short thread has a good effect,
ThreadPoolDemo
- 简易线程池思想+优先任务队列 可根据当前任务状态动态增减任务线程数 数目成员包括:初始线程数 最多线程数 最少空闲线程数 最多空闲线程数 原则上接到任务从空闲线程队列取线程执行,取了后判断最多线程数与最少空闲线程数决定是否创建空闲线程 线程执行从空闲切换到繁忙,执行完后继续从任务队列取任务执行,当任务队列空了再放置空闲队列 放置到空闲队列后,判断空闲队列最多数选择干掉空闲线程(Simple thread pool thinking + priority task queue can dy
gery
- windows平台下的线程池软件,对频繁调用但是处理时间很短的线程有很好的效果,(Thread pool Windows platform software, for frequent calls but processing time is very short thread has a good effect,)
modbus_original
- Cloud platform Basic test configuration code, can handle the scr ipt time on the cloud platform.
作业二代码
- 单线程,多线程,线程池,数大文件单词数,从而比较性能。(Single thread, multithreading, number of large number of file words in thread pool)
QTcpServiceTest
- qt编写tcp服务器程序,用到线程池。在vs2010/qtcreator4.8下运行正常.(Qt writes the TCP server program and USES the thread pool. Normal operation under vs2010/qtcreator4.8.)
1354023
- 一个好用的线程池 A nice thread pool()
asio
- c++ http 网络框架,跨平台,自带线程池(C++ HTTP network framework, cross platform, with thread pool.)
马士兵 Java高并发编程源码和思考题
- 马士兵老师的Java高并发编程及思考题,源码内容适合有多线程基础的朋友们。属于进阶版,从volatile和synchronized线程同步开始,有生产者消费者源码,阻塞队列等,由浅及深,最后介绍了线程池实现。