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
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
What value does readline() return when it has reached the end of a file?
Which container method is used to cause a container to be laid out and redisplayed?
what are memory considerations of jsp compares to other web components?
Are enterprise beans allowed to use thread.sleep()?
Is the ternary operator written x : y ? Z or x ? Y : z ?
When is the best time to validate input?
What is the purpose of the notify() method?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
Why use a datasource when you can directly specify a connection details?
what are the activation groupworks?
how do you Handle Front End Application data against DB with example?
What is mdb and what is the special feature of that?
How primary key is implemented in Oracle?
How will you pass parameters in RMI? Why do you serialize?