• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2005, Vol. 27 ›› Issue (12): 84-85.

• 论文 • 上一篇    下一篇

Linux下基于多线程的服务器程序设计

李昕 左明   

  • 出版日期:2005-01-01 发布日期:2010-06-22

  • Online:2005-01-01 Published:2010-06-22

摘要:

本文分析了服务器程序的通用设计方法的缺点,介绍了一种在Linux下的基于多线程的程序设计方法,并在原理上对其进行了细致的分析;最后给出了一个实现程序的框架。

关键词: Linux 多线程 线程槽 互斥锁

Abstract:

The demerits of the general-purpose method for server programming are analyzed. A method of mullilhreadbased server programming under Linux is imroduc ed, and its principle is analyzed in detail. Finally its implemenation framework is given

Key words: (Linux, multithread, thread slot, mutual exclusion)