作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 2004, Vol. 30 ›› Issue (23): 201-203.

• 论文 • 上一篇    下一篇

基于Linux嵌入式HTTP网络服务器的设计与实现

刘殿敏,李科杰   

  1. 北京理工大学机电工程学院,北京理工大学机电工程学院 北京 100081
  • 发布日期:2004-12-15

Design and Implementation of an Embedded HTTP Web Server Based on Linux

LIU Dianmin,LI Kejie   

  1. (School of Mechatronic Engineering, Beijing Institute of Technology, Beijing 100081)
  • Published:2004-12-15

摘要: 介绍了基于PXA250和 Linux嵌入式HTTP网络服务器的硬件、软件设计与实现。描述了基于PXA250嵌入式系统硬件设计原理,多进程和多线程并发连接嵌入式HTTP网络服务器软件算法和程序设计。程序设计基于HTTP协议作为软件开发的基础,主要包括3个关键内容:一个标准HTML页的发送和接收,客户端向嵌入式HTTP网络服务器发送Web表单请求时的通信和CGI接口程序。探讨了多个线程共享数据资源,并且安全可靠地工作。用互斥锁和条件变量技术解决了由并发产生的同步问题。

关键词: PXA250, 嵌入式系统, 线程同步, HTTP服务器, 并发连接服务器

Abstract: The thesis presents the design and implementation of the embedded system hardware and software based on PXA250 and Linux. The hardware principle of the embedded system based on PXA250 and parallel connect HTTP Web server of multi-process and multi-thread are introduced . The design of program is based on HTTP protocol. The thesis consists of three primary parts :one standard HTTP page is transmitted and received; it responses request that client transmit and handle CGI interface program. It deals with Web server of multi thread share data resource safely. To resolve the synchronous problem by reason of parallel, adopts the technologies of thread mutual exclusion lock and condition variable.

中图分类号: