I've been diving into the topic of multithreading recently and I really want to understand the functionality of Malebolgia.
As I understand it, Malebolgia is a library that allows you to have a threadpool (assuming a CPU of 8 cores you'll have 8 threads at most). And as I understand, Malebolgia uses a system where we load tasks into threads on an A La Carte basis, where if a task is spawned, then a new thread is created to go along with it.
Am I correct in saying this? I just want to make sure I got it correct.
And as I understand, Malebolgia uses a system where we load tasks into threads on an A La Carte basis, where if a task is spawned, then a new thread is created to go along with it.
No, that would break the whole idea behind a thread pool. Instead one non-busy existing thread is used to run the new task.