Main differences between process and thread:
๐น Processes are usually independent, while threads exist as process subsets.
๐น Each process has its own memory space. Threads that belong to the same process share the same memory.
๐น A process is a heavyweight operation. It takes more time to create and terminate.
๐น Context switching is more expensive between processes.
๐น Inter-thread communication is faster for threads.