What is the difference between Process and Threads?
Answer Posted / 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 |
Post New Answer View All Answers
How messaging services are done, before release of JMS?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
What is the highest-level event class of the event-delegation model?
Brief description about local interfaces?
What do you need to set-up a cluster with jboss?
whats is mean by connectionpooling
What value does read() return when it has reached the end of a file?
What restrictions are placed on the values of each case of a switch statement?
Should synchronization primitives be used on bean methods?
what are the activation groupworks?
How are commas used in the intialization and iteration parts of a for statement?
To identify IDL language what mapping mechanism is used?
Difference between new operator and class.forname().newinstance()?
Why use a datasource when you can directly specify a connection details?
What are the different approaches to represent an inheritance hierarchy?