Thread and Process
Both Threads and Processes are used for parallelisation.
A thread is an independent execution path and a process contain minimum one thread.
Operating system runs all our applications as processes and OS itself is a Process.
Now each application(Process) can have any number of threads.
Differerence between Thread and Process:
Threads can share the heap memory among them. Whereas Processes are completely isolated. Then what is inter-process communication? It is the communication between threads may be of single process or different processes. And therefore it is also called inter-thread communication. Funny terminology to confuse me :@
A thread is an independent execution path and a process contain minimum one thread.
Operating system runs all our applications as processes and OS itself is a Process.
Now each application(Process) can have any number of threads.
Differerence between Thread and Process:
Threads can share the heap memory among them. Whereas Processes are completely isolated. Then what is inter-process communication? It is the communication between threads may be of single process or different processes. And therefore it is also called inter-thread communication. Funny terminology to confuse me :@
Comments
Post a Comment