| 1. |
Describe The Difference Between A Thread And A Process? |
|
Answer» 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. 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. |
|