Describe the difference between a Thread and a Process?

Answer Posted / nalin jayasuriya

A thread consists of a series of computer instructions...
and usually corresponds to the CPUs execution of a series
of instructions. Threads use the registers and the 'stack'
as its memory (state).

A process contains at least one thread and private memory.
A process is the operating system loads when one executes a
program. When a process contains multiple threads, there is
usually thread synchronization needed.

In Windows programming, the primary thread is what creates
the user-interface controls and it's that thread that is
allowed exclusive privileges to update the user-interface.

In Windows programming, a process receives and sends
messages to the operating system.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstract class in oops?

603


What is inheritance in simple words?

627


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

944


What is polymorphism and why is it important?

562


What is the difference between encapsulation and polymorphism?

598






Give two or more real cenario of virtual function and vertual object

1858


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1657


Prepare me a program for the animation of train

2005


explain sub-type and sub class? atleast u have differ it into 4 points?

1840


Is html an oop?

585


what is difference between class template and template class?

2161


When not to use object oriented programming?

572


what type of questions

1697


Why oops is important?

616


what is the drawback of classical methods in oops?

2922