Multithreading can be a PITA, I know.
Here's how you can understand pro and cons in a real(ish) scenario
Davide Bellone 🐧 - 𝗰𝗼𝗱𝗲𝟰𝗶𝘁.𝗱𝗲𝘃 📃📃From Wikipedia:
Multithreading is the ability of a central processing unit (CPU) (or a single core in a multi-core processor) to provide multiple threads of execution concurrently, supported by the operating system.
Advantages vs disadvantages for #CodeNewbies: a MULTITHREAD ⬇12:36 PM - 08 Jul 2020