Thread vs Process


 * Both processes and threads are independent sequences of executions
 * Thread
 * Threads run in a shared memory space
 * Threads are considered lightweight because they use far less resources than processes
 * Multithreading requires careful programming


 * Process
 * Processes run in a separate memory space
 * A process can consist of multiple threads