Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
Sheriff
Posts: 24215
37
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!