Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - worker thread
Search - worker thread - List
threadpoo #include \"thread-pool.h\" static void *tp_work_thread(void *pthread) static void *tp_manage_thread(void *pthread) static TPBOOL tp_init(tp_thread_pool *this) static void tp_close(tp_thread_pool *this) static void tp_process_job(tp_thread_pool *this, tp_work *worker, tp_work_desc *job) static int tp_get_thread_by_id(tp_thread_pool *this, int id) static TPBOOL tp_add_thread(tp_thread_pool *this) static TPBOOL tp_delete_thread(tp_thread_pool *this) static int tp_get_tp_status(tp_thread_pool *this)
Date : 2008-10-13 Size : 10.14kb User : wxh

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类,进行处理。如果没有空闲任务类,动态再 创建一定数目的任务类。
Date : 2009-10-12 Size : 293.71kb User : 77501578@qq.com

tcp的客户端,用于与TCP/IP的server端收发字符,可以开启一个工人线程不断的发送数据.-tcp client for use on TCP/IP of the server side to send and receive characters, you can open a worker thread to send data continuously.
Date : 2026-01-01 Size : 3.55mb User : band

gh0st,相信大家也都听过了。 控制端采用IOCP模型,数据传输采用zlib压缩方式 稳定快速,上线数量无上限,可同时控制上万台主机 控制端自动检测CPU使用率调整自己的工作线程, 稳定高效 宿主为svchost以系统服务启动,有远程守护线程,上线间隔为两分钟。-gh0st, sure we all heard. Control client using IOCP model, data transmission using zlib compression steady and rapid, the number of on-line without a ceiling, at the same time control million host control client automatically detects the CPU usage to adjust their own worker threads, stable and efficient host for svchost to system services start, there is a remote guard thread, on-line interval is 2 minutes.
Date : 2026-01-01 Size : 1009kb User : fulon

vc6编写的多线程网络蜘蛛。功能:1、下载指定网址的网页文件,并可获得服务器的http响应信息。 2、可过滤出下载网页源码中的链接,文字,html标签,email地址 3、自动创建工作线程,检验过滤链接的有效性。-vc6 prepared multi-threaded web spider. Function: 1, download URL specified documents and access to the http server to respond to information. 2, can filter out the download page link in the source code, text, html tags, email address 3, automatically creates a worker thread, testing the effectiveness of filters link.
Date : 2026-01-01 Size : 1.51mb User : hxl

Currently, most of people use MS DCOM/COM+, Java Bean/RMI, and Corba to do distributed computing over internet. All of these technologies are provided with some tools and intermediate objects to simplify internet development. However, these technologies have one common and fundamental problem that all of the calls between a client and a server are blocked for a returned result (please correct me if this is wrong). A client stays still, and has to wait for a while after sending a request to a server. If the request is a lengthy action, the client application seems to be dead to a user. In most cases, we could use a worker thread at the client side to do background computation for solving this problem. However, this comes with an expensive price, more coding, data synchronization and mess in coding logic. Additionally, I also doubt that these technologies are able to really move data across internet efficiently.
Date : 2026-01-01 Size : 489kb User : Louis

运用多线程(工作线程),实现FTP客户端。-The use of multi-threaded (worker thread), the realization of FTP client.
Date : 2026-01-01 Size : 1.82mb User : 张伟

包含IO完成端口的讲解文档和源码实现,其实现对IO完成端口进行了封装,可直接拿来用。作为测试,还做了客户端。-This article presents a class which can be used in both the client and server code. The class uses IOCP (Input Output Completion Ports) and asynchronous (non-blocking) function calls which are explained later. The source code is based on many other source codes and articles. With this simple source code, you can: Service or connect to multiple clients and servers. Send or receive files asynchronously. Create and manage a logical worker thread pool to process heavier client/server requests or computations.
Date : 2026-01-01 Size : 23kb User : WangLi

基于完成例程的重叠IO模型,服务器端用个三个辅助线程来处理重叠IO操作,可通过增加线程来提高响应请求速度,此模型比基于事件通知伸缩性更好,服务器端用队列(选择队列更易于管理)存储了某个时间点的客户端socket,再用辅助线程处理-IO overlapped completion routines based model of the server with a three worker threads to handle overlapped IO operation can be improved by increasing the response to the request thread to speed, this model is better than the scalability of event-based notification, server-side with a queue (selected easier to manage the queue) to store a certain point in time the client socket, then the worker thread processing
Date : 2026-01-01 Size : 135kb User :

实现了一个功能简单的HTTP代理服务器,主要介绍多线程编程相关的知识,包括初始化临界段和删除临界段,使用临界段完成多个线程对临界资源的互斥访问,创建工作线程,退出工作线程,定义和设定事件,利用事件完成多个线程的同步与协作等。-A simple HTTP proxy server, introduces multi-threaded programming related knowledge, including the critical section is initialized and delete the critical section, use critical sections to complete more than one thread mutually exclusive access to critical resources, and to create a worker thread to exitworker threads, define and set the event, using the event to complete multiple threads, synchronization and collaboration.
Date : 2026-01-01 Size : 548kb User : 章顺利

一个线程池的框架 Lock.cpp :锁的操作 , 读锁可以并发 , 写锁独占. Queue.h : 队列的封装 , 队列的读和写都加了锁的保护. Socket.cpp : 套接口的简单封装. Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类. Worker.cpp : 用户接口类 , 用户需继承此类。 ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派. TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据.-The framework of a thread pool Lock.cpp: the lock operation, read locks can be complicated, write lock exclusive. Queue.h: a cohort of the package, the queue reads and writes are added to lock protection. Socket.cpp: simple package set interface. Thread.cpp: the thread package to achieve some simple thread stop operation, startup time other threads need to inherit such. Worker.cpp: user interface class, the user needs to inherit such. ListenThread.cpp (inherit Thread.cpp): thread server listener. If a client is connected by the notification class ThreadPool, ThreadPool class assignment. TaskThread.cpp (inherit Thread.cpp): responsible for specific tasks, accept the client sent the data.
Date : 2026-01-01 Size : 19kb User : 盖义
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.