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 the 3 types of system development life cycle
What is a class oop?
What is for loop and its syntax?
Why is oop better than procedural?
What do you mean by variable?
Can bst contain duplicates?
Why polymorphism is used in oops?
What is encapsulation oop?
What is interface? When and where is it used?
What is the real life example of polymorphism?
What is super in oop?
What is destructor oops?
What is difference between inheritance and polymorphism?
#include
What is polymorphism and example?