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
What is polymorphism and example?
What is encapsulation in simple terms?
Whats is abstraction in oops?
write a programe to calculate the simple intrest and compund intrest using by function overlading
Is abstract thinking intelligence?
How long to learn object oriented programming?
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.
when to use 'mutable' keyword and when to use 'const cast' in c++
What is object and class in oops?
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’.
What are the advantages of polymorphism?
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?
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
Which language is not a true object oriented programming language?
What is oops with example?