Research on Optimizing Multi-thread Programming Based on Multi-core Processor
Yuan Dao-hua · Computer Technology and Development · 2010
Nowadays multi-core processors are becoming more and more popular.Past serial ways of programming can no longer make full use of multi-core CPU power.How to efficiently use the computation ability of multi-core processors has become a new challenge to software developers.Based on traditional multi-thread programming,according to features of Intel Microarchitecure,and CPU binding technology provided by Linux kernel,Cache optimization and CPU affinity optimization are introduced,aiming to eliminate Cache line competition and reduce the cost of thread schedule.After these optimizations,multi-thread program will be running more efficiently.