January 2024
Intermediate to advanced
718 pages
20h 15m
English
Being able to do more than one thing at the same time is pretty useful. When a computer program has to wait for one task to finish, like an API call to a slow server, multitasking allows it to turn control over to another task and do other useful work while it waits. When a computer has more than one CPU—which, these days, means a computer—the program can split tasks across multiple CPUs. You can achieve tremendous speed boosts this way.
Being able to multitask is also pretty complicated. When a program multitasks, a task can change the state of the data another task is using, so the other task’s understanding of the data may no longer be correct. When a program multitasks, its tasks may fight for access ...
Read now
Unlock full access