Fundamentals

This lesson introduces the fundamentals of concurrency.

We'll cover the following...

Question # 1

What are some of the differences between a process and a thread?

Some of the differences between a process and a thread are:

  • A process can have many threads, whereas a thread can belong to only one process.

  • A thread is lightweight than a process and uses less resources than a process.

  • A thread has some state private to itself but threads of a process can share the resources allocated to the process including memory address space.

Question # 2

Can you list some of the problems with using threads?

Threads if used without thought can sometimes lead to performance degradation for the following ...