Font Size: a A A

Implementation Of WWW Cache Based On ThreadPool

Posted on:2009-02-01Degree:MasterType:Thesis
Country:ChinaCandidate:Z W YaoFull Text:PDF
GTID:2178360242483928Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
At present,people have been no longer strange to Internet,its rapid development has brought the enormous convenience for people's work and life. Internet has become a part of people's life. As the users of the Internet are growing unceasingly and the life rhythm is getting quicker and quicker,the network speed is needed faster. Although the network band width is increasing and the network hardware is renewing unceasingly,the growth of network speed still could not meet users'demands. This kind of condition is more obvious in the company. As a result of fund limit,each person is impossible to get an effective IP, but everyone shares one Internet line. Therefore, the proxy cache technology comes. Putting the proxy server at the network boundary, the user may directly obtain the information which has been saved in the proxy server, and people will obtain faster speed.Along with the changing of computer technology with each new day, the computer entered the multi-core age. Whether to fully using its multi-core performance has become the bottleneck to raise the network speed. Therefore, utilizing the multi-thread technology in the proxy server is the optimal. So the paper applies the threadpool technology to the network software design and gives one kind of threadpool pattern based on Half Sync/Half Async. It keeps a balance between complexity and effectiveness of software. After using the technology, it may fully use the multi-core performance of CPU, enhance the system's concurrency and the throughput, then enhance the proxy handling ability and reduce user response time.The system is based on Fedora10 platform. It includes an outside interface which is a threadpool based on Half Sync/Half Async pattern, through using both synchronous and synchronous I/O, programming simplicity and high quality of service may appear to be met. It also includes highly effective and reliable first-level buffer and the second-level buffer, DNS buffer, perfect and flexible Log module, the ICP communication module among the systems and ACL module.
Keywords/Search Tags:ThreadPool, Half Sync/Half Async, cache, HTTP
PDF Full Text Request
Related items