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


Please Help Members By Posting Answers For Below Questions

What is an assembly? Explain its parts.

722


What is asp net application object?

619


Explain transparent caching with aop?

603


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?

649


What is ashx file in asp.net?

631






If we remove web.config or machine.config from the application then, is this application will works?

685


What are the three parts of an http response?

603


Why do we need a web application session?

598


hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.

1352


What is different in .net 1.1 and .net 2.0?

642


How can you send an email message from an asp.net web page?

619


What is meant by server side scripting?

601


How many types of triggers are there in update panel?

659


What is meant by ispostback in asp net?

629


what cut off mark for po's,what questions they asked for interview?

1510