This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes hello Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "hello" Watch "hello" New topic
Author

hello

me sesil
Greenhorn

Joined: Dec 19, 2003
Posts: 18
Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started?
i want to know the difference between process and threads,explain me with example
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

The important difference on most operating systems is that each process has its own address space -- its own virtual mapping of numeric memory addresses -- while multiple threads share the address space of the process they belong to. Each time you launch a program in Windows, you're getting a new process. In Java, you can create processes with the overloaded java.lang.Runtime.exec() methods.


[Jess in Action][AskingGoodQuestions]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: hello
 
Similar Threads
Process and threads
hi problem in .exe
Thead!!!
Thread and Process ambiguity in follwing ...
Newbie! Launch Program from Java