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
What is an assembly? Explain its parts.
What is asp net application object?
Explain transparent caching with aop?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
What is ashx file in asp.net?
If we remove web.config or machine.config from the application then, is this application will works?
What are the three parts of an http response?
Why do we need a web application session?
hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.
What is different in .net 1.1 and .net 2.0?
How can you send an email message from an asp.net web page?
What is meant by server side scripting?
How many types of triggers are there in update panel?
What is meant by ispostback in asp net?
what cut off mark for po's,what questions they asked for interview?