Parallel Overhead: The Cost of Small Tasks

Both OpenMP and manual C++ threading introduce overheads related to thread creation, synchronization, and management. For tasks with minimal computation, these overheads can be significant enough to make parallel execution slower than sequential execution, underscoring that parallelization is only beneficial when the computational work outweighs the parallelization cost.

Sources

Open the full topic