首页 | 本学科首页   官方微博 | 高级检索  
     

基于UNIX C语言的一种线程池实现
引用本文:翁小东.基于UNIX C语言的一种线程池实现[J].数字社区&智能家居,2009,5(6):4222-4223.
作者姓名:翁小东
作者单位:上海直真节点技术开发有限公司,上海200001
摘    要:线程池的实现有很多种方案,包括基于不同操作系统,使用不同开发语言的实现方式。该文介绍了在UNIX操作系统下,基于POSIXTHREAD,使用C语言实现线程池的一种方案。该方案是为一个采用Webservice技术开发的项目,需要在服务端提供一个简单快速的线程池实现,完成每次Webservice调用。线程池设计目标是调用接口简单易用,任务分配方便快速,任务队列状态可查,线程池大小自动调整。

关 键 词:线程池  简单  快速  unix  C语言

Thread Pool Library for Unix C Language
WENG Xiao-dong.Thread Pool Library for Unix C Language[J].Digital Community & Smart Home,2009,5(6):4222-4223.
Authors:WENG Xiao-dong
Affiliation:WENG Xiao-dong (Shanghai ZZNode Technologies Development Co.,Ltd,Shanghai 200001,China)
Abstract:There are a lot of solutions for thread pool, inlcuding on various operation system, various coding languages. This article introduces a thread pool running on unix operation system, and coding in C language, the thread pool is a part of a application based on Webservice/SOAP, providing a simple and fast library accessed by SOAP server to carry out the Web service. The target of library is: simple to api call, easy to task dispatch ,queue status can be checked and thread pool is auto-resized.
Keywords:thread pool  simple  fast  unix  c language
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号