Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference Between Thread and Process

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are the differences between treads and processes?
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Threads are sort of like light-weight processes. You may have many threads in one process.
 
David Weitzman
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I may be mistaken, but I believe that the main difference is that threads can share the same memory and processes can't.
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is also true.
http://www.coderanch.com/t/231961/threads/java/Threads-vs-processes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic