Algorithm for Improving Processor Utilization in Multi-core Processor Environment by Python Language

Feng He, Xuran Hu, Shuren Liu, Tao Li, Kaifeng Zhu, Xin Bao, Chao Hua Jiang · 2021

Python is a very popular programming language at present, and it has a wide range of applications in big data applications and analysis, artificial intelligence and other fields. Especially in recent years, the application of Python in the field of artificial intelligence has involved natural language processing, computer vision, and machine learning. When writing computation-intensive tasks, such as image recognition programs based on deep learning, this paper briefly analyzes a concise algorithm that uses a combination of multi-process and signal mechanisms, and uses queues to share data between processes, thereby making full use of CPU and GPU performance. The algorithm can clean up zombie processes in time, make better use of system resources, and meet the requirements of multi-user concurrency. It also explains why this strategy is used and how to use it. Experiments show that the algorithm has good effect.

Read the paper · More papers on PaperTik