Describe the difference between a Thread and a Process?
Answer Posted / kirti
A Process is an instance of an running application. And a thread is the Execution stream of the Process. A process can have multiple Thread.
When a process starts a specific memory area is allocated to it. When there is multiple thread in a process, each thread gets a memory for storing the variables in it and plus they can access to the global variables which is common for all the thread. Eg.A Microsoft Word is a Application. When you open a word file,an instance of the Word starts and a process is allocated to this instance which has one thread.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by variable?
What is a function in oop?
What is destructor give example?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is abstraction in oops?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is a class in oop?
What is class encapsulation?
What is encapsulation with example?
Why do we use polymorphism?
Why multiple inheritance is not allowed?
what type of questions
What exactly is polymorphism?
What does and I oop mean in text?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?