A web server optimization based on thread pool and epoll

线程(计算) 计算机科学 并发 操作系统 并发控制 分布式计算 Web服务器 数据库 互联网 数据库事务
作者
Zhenhong Han,Junxiu Ju,Yiyan Zhang
标识
DOI:10.1117/12.2639480
摘要

The thread pool and the I/O multiplexing technology can effectively reduce the consumption of resources and enhance the concurrency of a server, which improves the capability of the system. Architects tend to use multiple threads to improve system concurrency, which has been proved to be effective in the past few years. However, the cost of creating, switching, and destroying threads remains to be an assignable problem when the system is having a concurrent peak. This paper designs and implements a server based on the technologies of the thread pool and epoll to figure out if the mixture of epoll and thread pool as optimization can help decrease thread operation costs. To deal with the system overhead, we introduce the thread pool technology based on an epoll web server to avoid the cost of frequent operations of creating or destroying threads. We build two sets of experiments to verify the effectiveness of our optimization, including a web server with thread pool and epoll as the experimental group, and a simple epoll web server without thread pool as the control group. Then, we test the system performance by altering the concurrency of each experimental and measuring the actual-time system overhead to describe the improvement we made to the multi-threaded server. The results show that the concurrent server with the technology of epoll and thread pool can achieve high performance and high concurrency.

科研通智能强力驱动
Strongly Powered by AbleSci AI

祝大家在新的一年里科研腾飞
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
gxzsdf完成签到 ,获得积分10
1秒前
二氧化硒发布了新的文献求助10
1秒前
田様应助zz采纳,获得10
1秒前
zbz完成签到,获得积分10
2秒前
Hezzzz完成签到,获得积分10
3秒前
L1完成签到 ,获得积分10
3秒前
稳重的蛟凤应助Maestro_S采纳,获得10
4秒前
传奇3应助zbz采纳,获得10
5秒前
HXX19完成签到 ,获得积分10
5秒前
好大一只小坏蛋完成签到,获得积分10
5秒前
tsttst完成签到,获得积分10
7秒前
7秒前
二氧化硒完成签到,获得积分10
8秒前
9秒前
LL完成签到 ,获得积分10
12秒前
13秒前
changewoo发布了新的文献求助10
14秒前
晴空万里完成签到 ,获得积分10
15秒前
兴奋尔白完成签到 ,获得积分10
17秒前
张昌炜完成签到 ,获得积分10
17秒前
19秒前
黎黎完成签到 ,获得积分10
21秒前
21秒前
司空元正完成签到 ,获得积分10
22秒前
包容朝雪完成签到 ,获得积分10
23秒前
可绪kk完成签到 ,获得积分10
25秒前
秋半梦发布了新的文献求助10
26秒前
Lucas应助马铃薯采纳,获得10
27秒前
饶喆妍完成签到 ,获得积分10
29秒前
Ashore完成签到,获得积分10
30秒前
热情的觅云完成签到 ,获得积分10
30秒前
laber完成签到,获得积分0
31秒前
sxb10101应助Ideal采纳,获得50
31秒前
ma完成签到,获得积分10
34秒前
princess完成签到,获得积分10
34秒前
十六月夜完成签到,获得积分10
37秒前
37秒前
壮观的谷冬完成签到,获得积分10
37秒前
飞快的青旋完成签到,获得积分20
37秒前
fwstu发布了新的文献求助20
38秒前
高分求助中
Operational Bulk Evaporation Duct Model for MORIAH Version 1.2 1200
Signals, Systems, and Signal Processing 880
Yangtze Reminiscences. Some Notes And Recollections Of Service With The China Navigation Company Ltd., 1925-1939 800
Common Foundations of American and East Asian Modernisation: From Alexander Hamilton to Junichero Koizumi 600
Discrete-Time Signals and Systems 510
Industrial Organic Chemistry, 5th Edition 400
Multiple Regression and Beyond An Introduction to Multiple Regression and Structural Equation Modeling 4th Edition 400
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5846349
求助须知:如何正确求助?哪些是违规求助? 6213761
关于积分的说明 15617563
捐赠科研通 4962920
什么是DOI,文献DOI怎么找? 2675777
邀请新用户注册赠送积分活动 1620525
关于科研通互助平台的介绍 1576099