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 are benefits of oop?

625


What is polymorphism explain?

675


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1826


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1626


Prepare me a program for the animation of train

1978






What are the 5 oop principles?

592


What is difference between data abstraction and encapsulation?

608


Why is there no multiple inheritance?

560


What is the benefit of oop?

562


Why do we need oop?

654


What is overriding in oops?

592


What is abstraction oop?

613


write a program that takes input in digits and display the result in words from 1 to 1000

1977


What is difference between inheritance and polymorphism?

557


class type to basic type conversion

1830