搜索资源列表
epoll多线程
- Lock.cpp : 锁的操作 , 读锁可以并发 , 写锁独占. Queue.h : 队列的封装 , 队列的读和写都加了锁的保护. Socket.cpp : 套接口的简单封装. Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类. Worker.cpp : 用户接口类 , 用户需继承此类。 ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知Thre
QGServerLib_release.tar
- QGServerLib是一个C++实现的简单易用的Tcp服务器框架库,旨在简化服务器的构建过程。 具有如下特点: 1, 以模块化的处理池为基本构建元素,能够方便的实现安全稳定的服务架构。 2,事件触发,多线程事件监听,任务化读写访问,解决单线程监听及数据读写带来的性能瓶颈,连接不受线程数限制。 3,写队列,并行读写逻辑,支持服务器数据推送(Push)。 4,数据传送协议,避免数据传送错误,封装数据流。 5,类远过程调用。 6,
MultiThreadServer
- 使用TCP/IP协议写的一个服务器端应用程序,使用线程池技术,实施对端口进行监听。-Using the TCP/IP protocol write a server-side application, using the thread pool technology to monitor the implementation of the port.
thread
- 线程池的实现主要分为三部分,线程的创建、添加任务到线程池中、工作线程从任务队列中取出任务进行处理。 主要有两个类来实现,CTask,CThreadPool-Implementation of thread pool is divided into three parts, thread creation, add the task to the thread pool, work out a thread from the task queue task for processing. Th
epoll
- 该程序实现了线程池的功能,服务器端需要运行多个线程来处理不同的任务,这时用线程池是最好的处理办法了,提高了程序的运行效率-The program function of the thread pool, server-side need to run multiple threads to handle different tasks, then use the thread pool is the best approach to improve the operating efficienc
thread_pool
- 这是一个线程池实例程序。线程池是一种多线程处理形式,处理过程中将任务添加到队列,然后在创建线程后自动启动这些任务。线程池线程都是后台线程.每个线程都使用默认的堆栈大小,以默认的优先级运行,并处于多线程单元中.如果某个线程在托管代码中空闲(如正在等待某个事件),则线程池将插入另一个辅助线程来使所有处理器保持繁忙.如果所有线程池线程都始终保持繁忙,但队列中包含挂起的工作,则线程池将在一段时间后创建另一个辅助线程但线程的数目永远不会超过最大值.超过最大值的线程可以排队,但他们要等到其他线程完成后才启动
MyLinuxThread_veryhuo.com
- C++多线程socket的服务器源代码,多线程池动态分配,处理多任务的服务器!用于大数据的处理。当任务量大于线程池中的线程量,此时,开辟新的线程,加入线程池!-Server source code of C++ multi-threaded socket, multi-thread pool dynamically allocate server handle multi-tasking! For the processing of large data. When the task is gr
thread_pool.tar
- 线程池类,该线程池主要实现了任务分离,通过一个抽象类来对任务进行分离。-Thread pool class, the main achievement of the task thread pool separated by an abstract class to separate the tasks.
threadpool
- 基于c的线程池,包含线程池的创建,线程池的任务添加,以及线程池的销毁。-c implement thread pool
MyLinuxThread
- 一个线程池的框架 Lock.cpp :锁的操作 , 读锁可以并发 , 写锁独占. Queue.h : 队列的封装 , 队列的读和写都加了锁的保护. Socket.cpp : 套接口的简单封装. Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类. Worker.cpp : 用户接口类 , 用户需继承此类。 ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知Threa
socket_plthread
- 这是个完整的源码包,实现客户端从服务端下载文件的程序,重点亮点是服务端采用多线程建立socket接受客服的连接请求,服务端建立线程池,然后建立任务列表接受客户-This is a complete source code package, to achieve application client to download files the server, the focus highlight is the establishment of multi-threaded server soc
pn6
- 实现消息队列的推送服务,基于Linux c实现线程池处理多任务,实现基于socket的边沿触发epoll通信(Implementing push services for message queues)