Task-based multi-threading using enkiTS
To achieve parallelism, we need to understand some basic concepts and choices that led to the architecture developed in this chapter. First, we should note that when we talk about parallelism in software engineering, we mean the act of executing chunks of code at the same time.
This is possible because modern hardware has different units that can be operated independently, and operating systems have dedicated execution units called threads.
A common way to achieve parallelism is to reason with tasks – small independent execution units that can run on any thread.
Why task-based parallelism?
Multi-threading is not a new subject, and since the early years of it being added to various game engines, there have been different ways of implementing it. Game engines are pieces of software that use all of the hardware available in the most efficient way, thus paving the way for more optimized software architectures.
Therefore, we...