CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - worker thread
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - worker thread - List
[
Linux-Unix
]
MyLinuxThread5-25[1].tar
DL : 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
Date
: 2026-01-01
Size
: 10kb
User
:
wsd
[
Linux-Unix
]
C10K
DL : 0
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类,进行处理。如果没有空闲任务类,动态再 创建一定数目的任务类。-asdfasdfadfadfadsfadf
Date
: 2026-01-01
Size
: 371kb
User
:
fsdfsdfd
[
Linux-Unix
]
Task_ThreadPool
DL : 0
用ace的task框架实现了线程池的领导者,工作者模型-With the ace of the thread pool task framework makes a leader, worker model
Date
: 2026-01-01
Size
: 1kb
User
:
李小叶
[
Linux-Unix
]
thread
DL : 1
概述一下原理和每个类的作用 (1): CTask 一个任务基类,作为线程的参数用 (2): CWorkThread:工作线程类,轮询检测参数是否可用,如果可用的话, 就去调用参数CTask的执 行函数Execute,如果参数不可用就等待 (3): CWorkQueue:是一个任务队列,里面装载CTask子类的对象,是一个对象的容器 (4): CWorkThreadPool:工作线程池,其中包含了工作线程组,调度线程,调度线程不停的检测 任务队列中是否有可用任务对象,如过取到一个有效的任务对象,就从工作线程组中查找出来 一个空闲的工作线程,把这个任务交给这个空闲的线程去执行,如果没有空闲线程则创建新 的工作线程并添加到工作线程组中。 (1),(2),(3),(4)组成了库的核心,可以稍加修改进行应用 其他附属类: (5):CSimpleUDP 一个简易的封装的UDP通讯类 (6):CLogHelper 一个线程安全的日志类,将日志存储到指定文件并能打印到标准输出 特点:支持windows和Linux平台 -Outline the principles and the role of each class (1): CTask a task base class, as arguments to thread (2): CWorkThread: Class of worker threads, polling detection parameters are available, if available, Go to the implementation of the function call parameters CTask Execute, if the parameter is not available to wait (3): CWorkQueue: a task queue, which loaded CTask subclass object is a container object (4): CWorkThreadPool: worker thread pool, which contains the group of worker threads, scheduling threads, thread scheduling non-stop testing Task queue is available in the task object, such as over the task of taking to a valid object, the thread from the Working Group to find out An idle worker thread, this task to the idle thread to execute, if no idle thread is to create a new The work of the thread and added to the thread group. (1), (2), (3), (4) form the core of the library, can be modified for application Other sub categories: (5): CSim
Date
: 2026-01-01
Size
: 38kb
User
:
金建业
[
Linux-Unix
]
DedicatedWorkerThread
DL : 0
Dedicated Worker Thread for Linux.
Date
: 2026-01-01
Size
: 1kb
User
:
wuconnun
[
Linux-Unix
]
ThreadPool
DL : 0
Entry point for each worker thread.
Date
: 2026-01-01
Size
: 4kb
User
:
qenpezei
[
Linux-Unix
]
SharedWorkerThread
DL : 0
Shared Worker Thread QT Web Interface Source Code for Linux.
Date
: 2026-01-01
Size
: 1kb
User
:
wongpaobun
[
Linux-Unix
]
network_change_notifier_win
DL : 0
All OCSP handlers should be called in the context of CertVerifier s thread (i.e. worker pool, not on the I/O thread). It supports blocking mode only for Linux. -All OCSP handlers should be called in the context of CertVerifier s thread (i.e. worker pool, not on the I/O thread). It supports blocking mode only for Linux.
Date
: 2026-01-01
Size
: 16kb
User
:
gaiqengru
[
Linux-Unix
]
WorkerThread
DL : 0
Worker Thread Source Code for Linux.
Date
: 2026-01-01
Size
: 3kb
User
:
viugongnie
[
Linux-Unix
]
RefQueueWorker
DL : 0
A worker thread for processing queued references Source Code for Linux.
Date
: 2026-01-01
Size
: 1kb
User
:
jehinbao
[
Linux-Unix
]
EmailBroadcastReceiver
DL : 0
The broadcast receiver. The actual job is done in EmailBroadcastProcessor on a worker thread.
Date
: 2026-01-01
Size
: 2kb
User
:
bavueyeng
[
Linux-Unix
]
EmailBroadcastProcessorService
DL : 0
The service that really handles broadcast intents on a worker thread.
Date
: 2026-01-01
Size
: 2kb
User
:
dunrunzue
[
Linux-Unix
]
mpc6xx
DL : 0
Worker thread to service arbiter mappings based on dev SKUs.
Date
: 2026-01-01
Size
: 4kb
User
:
zundenkun
[
Linux-Unix
]
dm-region-hash
DL : 0
Callback function to wakeup callers worker thread.
Date
: 2026-01-01
Size
: 6kb
User
:
xbneison
[
Linux-Unix
]
schannel6_logins
DL : 0
Attaches the worker to the current thread and begins processing work if not already doing so. -Attaches the worker to the current thread and begins processing work if not already doing so.
Date
: 2026-01-01
Size
: 3kb
User
:
nexvgg
[
Linux-Unix
]
pthread_pool
DL : 0
线程池组成 1)线程管理器: 2)工作线程: 3)任务接口: 4)任务队列:(Thread pool composition 1) thread manager: 2) worker threads: 3) task interface: 4) task queue:)
Date
: 2026-01-01
Size
: 2kb
User
:
街角的木偶
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.