File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes Difference between multithread and multiprocess Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Difference between multithread and multiprocess" Watch "Difference between multithread and multiprocess" New topic
Author

Difference between multithread and multiprocess

Jane Somerfield
Ranch Hand

Joined: Jul 20, 2002
Posts: 193
How the multiprocess is done in Java?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

"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.


[Jess in Action][AskingGoodQuestions]
 
jQuery in Action, 2nd edition
 
subject: Difference between multithread and multiprocess