Improvement and Implementation of General Thread Pool under Linux

TANG Fuqiang,YU Hongyang,ZHANG Ping
DOI: https://doi.org/10.3778/j.issn.1002-8331.2012.28.016
2012-01-01
Abstract:Do research on blocking and wakeup mechanism,dynamic adjustment,thread exit safely,parameter processing,the system maximam number of threads limits and other details in thread pool,to ensure its independence and generality under the different scenarios;meanwhile,using a linked list of array-based mechanisms to improve the search and allocation algorithm in thread pool,to be stable in time complexity O(1),and avoid the problem that allocate and query performance will degrade in the traditional thread pool when the number of threads allocated is too large,experimental results show that there is a great saving in cost with the traditional distribution system compared to the thread.
What problem does this paper attempt to address?