Thread (Operating System)

Some quick notes from https://www.geeksforgeeks.org/thread-in-operating-system/

Good intro in https://www.educative.io/blog/multithreading-and-concurrency-fundamentals

Processes vs. threads:

  • Processes are what actually execute the program. Each process is able to run concurrent subtasks called threads
  • Threads are sub-tasks of processes and if synchronized correctly can give the illusion that your application is performing everything at once. Without threads you would have to write one program per task, run them as processes and synchronize them through the operating system