Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between Process and Threads?

Answers were Sorted based on User's Feedback



What is the difference between Process and Threads?..

Answer / swagatika

Process-When a program executed then process creats which
take space in the memory with its own address space.
-context switching will be delay and more costly in compare
to the thread as it will be the swiching from one memory
space to other memory space.
-One Process can have multiple thread..
Ex-Window Media Player
In the media player

Is This Answer Correct ?    4 Yes 1 No

What is the difference between Process and Threads?..

Answer / sanjit patra

Process is part of program.


But,thread is part of process

Is This Answer Correct ?    1 Yes 0 No

What is the difference between Process and Threads?..

Answer / surabhee

Firstly,a process can contain multiple threads.
In multithreading operating systems, a process gets its own memory address space; a thread doesn't.
Threads typically share the heap belonging to their parent process.
Even though they share a common heap, threads have their own stack space.

Is This Answer Correct ?    1 Yes 0 No

What is the difference between Process and Threads?..

Answer / hetal

A process is a running instance of a program to which system allocates resources like CPU time and memory (separate heap, method area etc. which does not overlap with other process running on the system at the same time). In a big application there may be a set of cooperating processes communicating to each other in order to perform the desired functionality. Two processes communicate through well defined inter process communication mechanism, such as pipes, sockets and shared memory, if both processes are running on the same machine.

On the other hand threads exist within a process; every process has at least one thread. A thread is a light weight process that does not require as much resources as a process requires. Threads running inside a process, share the common set of resources among themselves which are allocated to the process (including the memory, the address space). All the threads share the same heap and method area (but individual stacks). All local variables are thread safe in Java because local variables are stored in each thread's own stack and each thread has its own stack created. Because threads share virtual address space, that makes inter thread communication between threads much cheaper than inter process communication between two independent processes

Is This Answer Correct ?    1 Yes 0 No

What is the difference between Process and Threads?..

Answer / jagadeeesh

Process
Each process provides the resources needed to execute a program. A process has a virtual address space, executable code, open handles to system objects, a security context, a unique process identifier, environment variables, a priority class, minimum and maximum working set sizes, and at least one thread of execution. Each process is started with a single thread, often called the primary thread, but can create additional threads from any of its threads.
threads
thread is the entity within a process that can be scheduled for execution. All threads of a process share its virtual address space and system resources. In addition, each thread maintains exception handlers, a scheduling priority, thread local storage, a unique thread identifier, and a set of structures the system will use to save the thread context until it is scheduled.It is termed as a ‘lightweight process’, since it is similar to a real process but executes within the context of a process and shares the same resources allotted to the process by the kernel

Is This Answer Correct ?    0 Yes 0 No

What is the difference between Process and Threads?..

Answer / vinod kumar thapa

process takes more memory space in compare to thread

Is This Answer Correct ?    0 Yes 1 No

What is the difference between Process and Threads?..

Answer / praju

tread have not its own memory address.
process have its own address

Is This Answer Correct ?    3 Yes 6 No

What is the difference between Process and Threads?..

Answer / reet

threads can share address or directly acess the address
process dont directly access the addresss

Is This Answer Correct ?    22 Yes 26 No

What is the difference between Process and Threads?..

Answer / sharry

thrads r nt independent
processes r independent there is no sharing

Is This Answer Correct ?    12 Yes 44 No

Post New Answer

More Advanced Java Interview Questions

If i learn Java, what kind of applications can i create that will help Banking, Retail, Hotel, Logistics industry.

2 Answers  


What is clustering? What are the different algorithms used for clustering?

0 Answers  


what is a Daemon Thread?

2 Answers  


What is Stream and Types?

2 Answers   Patni,


What are the sequence of steps to write pub or sub model kind of application?

0 Answers   TCS,


In HashTable I am storing null value..then what is the error it will show

2 Answers   GM General Motors,


Can I use multiple html form elements with the same name?

0 Answers  


does j2ee means advanced java

10 Answers  


How is serialization used generally ?

3 Answers  


How a component can be placed on Windows?

0 Answers   Wipro,


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

0 Answers  


What is the relationship between an event-listener interface and an event-adapter class?

0 Answers  


Categories