Abstract <p>The main methods of numerical simulation (the finite difference method, the finite element method, the Monte Carlo method, and the Runge–Kutta method) are presented. The main parameters used to optimize numerical modeling algorithms in terms of code execution time and efficient use of processor resources are considered. The main disadvantages of multithreading related to data synchronization, deadlocks, and race conditions and methods for eliminating them based on the use of mutexes and atomic operations are analyzed, using the Monte Carlo method as an example.</p>

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Optimization of Numerical Simulation Algorithms in C++ with Multithreading Methods

  • Yu. S. Efimov

摘要

Abstract

The main methods of numerical simulation (the finite difference method, the finite element method, the Monte Carlo method, and the Runge–Kutta method) are presented. The main parameters used to optimize numerical modeling algorithms in terms of code execution time and efficient use of processor resources are considered. The main disadvantages of multithreading related to data synchronization, deadlocks, and race conditions and methods for eliminating them based on the use of mutexes and atomic operations are analyzed, using the Monte Carlo method as an example.