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
I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.
Give some salient points of difference between request processor and request dispatcher.
How you can manage the state of application at the server side in ASP.NET?
How can you handle errors in Web API?
What is the difference between adding reference in solution explorer and adding references by using ?
Can you explain one critical mapping? Performance issue which one is better?
What is asp short for?
Differentiate the session object and application object?
What are session state modes in asp.net?
How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?
What is preprocessor in .net?
Which browsers support the xmlhttprequest object?
Where do we store our connection string in asp.net application?
What is globalization and localization in asp net?
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?