• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Differences between Process and Thread

 
Rahul Mahindrakar
Ranch Hand
Posts: 1868
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lets list down the differences between the two in this thread!!
 
V Srinivasan
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we say
Process is purely CPU's action
Thread manipulates the CPU's idle time
 
Marcela Blei
Ranch Hand
Posts: 477
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by V Srinivasan:
Process is purely CPU's action
Thread manipulates the CPU's idle time

Yes, but a Thread manages one single process
 
Rahul Mahindrakar
Ranch Hand
Posts: 1868
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Differences between a thread and a Process
1) It takes less overhead to create and destroy individual threads than it does individaual process which is why all modern operating systems support multithreading
2) IPC (Inter Process communication) is much slower and more restrictive than communication between threads
3) Each process has a complete set of its own variables while threads share the same data.
Regds.
Rahul P. Mahindrakar
 
Prabhjyot Singh
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Methods like yield(),wait() are provided for IPC in java.Thus they cater to different threads inside the same ONE process.Multiple concurrent processes are supported in modern os's in process control blocks are created by the os track their addresses.Sharing of data is expensive between processes,the familiar consumer-producer processes ascompared to threads within a single process coz of faster context switching.Hope it helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic