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
What is abstract class in oops?
What is inheritance in simple words?
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
What is polymorphism and why is it important?
What is the difference between encapsulation and polymorphism?
Give two or more real cenario of virtual function and vertual object
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
Prepare me a program for the animation of train
explain sub-type and sub class? atleast u have differ it into 4 points?
Is html an oop?
what is difference between class template and template class?
When not to use object oriented programming?
what type of questions
Why oops is important?
what is the drawback of classical methods in oops?