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 What is the difference between process & thread?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "What is the difference between process & thread??" Watch "What is the difference between process & thread??" New topic
Author

What is the difference between process & thread??

Priti Sharma
Greenhorn

Joined: Oct 15, 2008
Posts: 15
Can somebody explain what is the difference between process & thread?? The tutorial on http://java.sun.com says that "Both processes and threads provide an execution environment, but creating a new thread requires fewer resources than creating a new process". What are these resources? Can somebody explain the clear distinction??

Thanks in advance.
Prajesh Jagdish Madhavi
Greenhorn

Joined: Jun 22, 2009
Posts: 2
thread is child of a process.
one process can run many threads at a time.


Prajesh.
Prajesh Jagdish Madhavi
Greenhorn

Joined: Jun 22, 2009
Posts: 2
Both threads and processes are methods of parallelizing an application. However, processes are independent execution units that contain their own state information, use their own address spaces, and only interact with each other via interprocess communication mechanisms (generally managed by the operating system). Applications are typically divided into processes during the design phase, and a master process explicitly spawns sub-processes when it makes sense to logically separate significant application functionality. Processes, in other words, are an architectural construct.
Priti Sharma
Greenhorn

Joined: Oct 15, 2008
Posts: 15
Thanks Prajesh

Got some gyaan from internet & also your explanation made the difference clearer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the difference between process & thread??
 
Similar Threads
process & thread
difference between deamon thread and green thread
Hibernate, JNDI, JDBC.
Good Java Interview Questions!
Black and white