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

Difference between multithread and multiprocess

 
Jane Somerfield
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How the multiprocess is done in Java?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Multiprocessing" isn't really a term with a precise meaning in this context; but on most operating systems the definition of a process is running code with its own address space, and a thread shares its address space with other threads; generally a process can contain one or more threads.
Therefore "multiprocessing in Java" would imply starting multiple separate processes -- i.e., multiple separate JVMs. If one JVM wanted to start another, it would use the Runtime.exec() family of methods.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic