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??
thread is child of a process.
one process can run many threads at a time.
Prajesh Jagdish Madhavi
Joined: Jun 22, 2009
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.
Joined: Oct 15, 2008
Got some gyaan from internet & also your explanation made the difference clearer