What is the difference between a Thread and Process?
Answer Posted / krishpuneet
A process is a collection of virtual memory space, code,
data, and system resources. A thread is code that is to be
serially executed within a process. A processor executes
threads, not processes, so each application has at least
one process, and a process always has at least one thread
of execution, known as the primary thread. A process can
have multiple threads in addition to the primary thread.
Prior to the introduction of multiple threads of execution,
applications were all designed to run on a single thread of
execution.
When a thread begins to execute, it continues until it is
killed or until it is interrupted by a thread with higher
priority (by a user action or the kernel’s thread
scheduler). Each thread can run separate sections of code,
or multiple threads can execute the same section of code.
Threads executing the same block of code maintain separate
stacks. Each thread in a process shares that process’s
global variables and resources.
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
What is the difference between CC and BCC?
What is server infrastructure?
What is globalization and localization in asp net?
What is AutoPostback?
What is the server of asp.net?
What are validator? Name the validation controls in asp.net? How do you disable them?
Explain the various authentication mechanisms in asp.net.
How do you create a master page?
What is autopostback true?
What language does asp.net use?
What is the difference between custom web user control and a custom web server control?
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
What is the difference between application state and caching?