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 polymorphism and example?

594


What is encapsulation in simple terms?

542


Whats is abstraction in oops?

593


write a programe to calculate the simple intrest and compund intrest using by function overlading

1670


Is abstract thinking intelligence?

601






How long to learn object oriented programming?

568


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1460


when to use 'mutable' keyword and when to use 'const cast' in c++

1651


What is object and class in oops?

590


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1783


What are the advantages of polymorphism?

577


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2764


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1623


Which language is not a true object oriented programming language?

646


What is oops with example?

566