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
Which component handles cluster communication in jboss?
What is the map interface?
What are the sequence of steps to write pub or sub model kind of application?
Why a client should be multithreading? Explain.
What is JTS?
whats is mean by connectionpooling
Name three subclasses of the component class?
Why is string immutable in java?
what are the activation groupworks?
which type of objects reference will be given to client?
What is in-memory replication?
Can I map more than one table in a cmp?
What is the purpose of the notifyall() method?
How can I scroll through list of pages like the search results in google?
Describe, in general, how java's garbage collector works?