文件名称:MyLinuxThread5-25[1].tar
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:10.09kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
LINUX 线程池源代码:Lock.cpp : 锁的操作 , 读锁可以并发 , 写锁独占.
Queue.h : 队列的封装 , 队列的读和写都加了锁的保护.
Socket.cpp : 套接口的简单封装.
Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类.
Worker.cpp : 用户接口类 , 用户需继承此类。
ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派.
TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据.
ThreadPool.cpp (继承Thread.cpp) : 线程池类负责启动别的线程 , 并且进行线程调度。首先启动ListenThread.cpp类,如果有客户端
连接ListenThread.cpp类发送信号通知ThreadPool.cpp类,收到信号再分配给TaskThread.cpp类,进行处理。如果没有空闲任务类,动态再-LINUX source code of the thread pool
Queue.h : 队列的封装 , 队列的读和写都加了锁的保护.
Socket.cpp : 套接口的简单封装.
Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类.
Worker.cpp : 用户接口类 , 用户需继承此类。
ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派.
TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据.
ThreadPool.cpp (继承Thread.cpp) : 线程池类负责启动别的线程 , 并且进行线程调度。首先启动ListenThread.cpp类,如果有客户端
连接ListenThread.cpp类发送信号通知ThreadPool.cpp类,收到信号再分配给TaskThread.cpp类,进行处理。如果没有空闲任务类,动态再-LINUX source code of the thread pool
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MyLinuxThread/
MyLinuxThread/ThreadPool.h
MyLinuxThread/Makefile
MyLinuxThread/Worker.h
MyLinuxThread/Worker.cpp
MyLinuxThread/ThreadPool.cpp
MyLinuxThread/Thread.h
MyLinuxThread/def.h
MyLinuxThread/testPool.cpp
MyLinuxThread/Lock.h
MyLinuxThread/Lock.cpp
MyLinuxThread/Queue.h
MyLinuxThread/Thread.cpp
MyLinuxThread/ListenThread.cpp
MyLinuxThread/Socket.h
MyLinuxThread/ListenThread.h
MyLinuxThread/Socket.cpp
MyLinuxThread/Log.cpp
MyLinuxThread/Log.h
MyLinuxThread/testPool.h
MyLinuxThread/ThreadDoc
MyLinuxThread/Data.h
MyLinuxThread/SendMessThread.h
MyLinuxThread/SendMessThread.cpp
MyLinuxThread/Data.cpp
MyLinuxThread/Server.h
MyLinuxThread/RecvMessThread.h
MyLinuxThread/'
MyLinuxThread/RecvMessThread.cpp
MyLinuxThread/Server.cpp
MyLinuxThread/ThreadPool.h
MyLinuxThread/Makefile
MyLinuxThread/Worker.h
MyLinuxThread/Worker.cpp
MyLinuxThread/ThreadPool.cpp
MyLinuxThread/Thread.h
MyLinuxThread/def.h
MyLinuxThread/testPool.cpp
MyLinuxThread/Lock.h
MyLinuxThread/Lock.cpp
MyLinuxThread/Queue.h
MyLinuxThread/Thread.cpp
MyLinuxThread/ListenThread.cpp
MyLinuxThread/Socket.h
MyLinuxThread/ListenThread.h
MyLinuxThread/Socket.cpp
MyLinuxThread/Log.cpp
MyLinuxThread/Log.h
MyLinuxThread/testPool.h
MyLinuxThread/ThreadDoc
MyLinuxThread/Data.h
MyLinuxThread/SendMessThread.h
MyLinuxThread/SendMessThread.cpp
MyLinuxThread/Data.cpp
MyLinuxThread/Server.h
MyLinuxThread/RecvMessThread.h
MyLinuxThread/'
MyLinuxThread/RecvMessThread.cpp
MyLinuxThread/Server.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.