Describe the difference between a Thread and a Process?

Answer Posted / nahom tijnam

Thread is the basic unit of execution in a computer processor.

Process is an instance of a program that is executed sequentially. So when you fire up an application in your computer, you are starting a process.

Process consists of one or more threads. Single Threaded applications when run have a process with a single thread. Similarly, Multi-threaded applications (MTA) when run have a process with multiple threads.

In an MTA, the different threads can access the resources (like memory) owned by its process.

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 encapsulation oop?

566


When not to use object oriented programming?

560


What is overloading and its types?

604


What is object-oriented programming? Webopedia definition

706


What is multilevel inheritance in oop?

547






Describe these concepts: Polymorphism, Inheritance and Abstraction.

601


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

1843


Templates mean

1579


How to hide the base class functionality in Inheritance?

628


What is the diamond problem in inheritance?

565


Why do we use oops?

583


What is encapsulation and abstraction? How are they implemented in C++?

626


Can a destructor be called directly?

591


What is the full form of oops?

601


What is the purpose of polymorphism?

664