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

Web API supports which protocol?

848


What is xaml? Are xaml file compiled or built on runtime?

520


Explain different authentication modes in asp.net?

548


Is asp.net a programming language or framework?

546


What is difference between view state and session state?

477






What is the difference between client-side and server-side validations in webpages?

561


Where do we store our connection string in asp.net application?

524


How can we make sure that Web API returns JSON data only?

534


What is session object? Describe in detail.

560


What is the full meaning of asp.net?

524


What are the disadvantages of using session?

467


Who is using asp.net?

501


Explain what the contents of cookie?

590


Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.

2591


Explain the asp.net mvc request life cycle? : asp.net mvc

498