Concurrency – Multitasking Notes

  1. Multiple cores are unnecessary for achieving concurrency. Using a single core with multiple threads – with context switching, we can create an illusion of parallel execution of multiple tasks to the end user. We can truly perform parallel execution with multiple cores.
  2. Concurrency can be achieved by using processes or threads.
  3. A process can have multiple threads, all executing at the same time.
  4.  Multiple threads can run concurrently within the same process, while only one instance of a program can run at a time.

Leave a Reply

Your email address will not be published. Required fields are marked *