This is a multiple answer question, meaning more than one of these may be a right answer. This is from an O/S class.
What is a thread?
|
A further abstraction of a process used to facilitate interactions between code pieces with similar goals related to a parent process. |
||
|
A process within a process |
||
|
A bridge between two completely different processes |
||
|
A function within a process |
What is a thread?
Ans:
A further abstraction of a process used to facilitate interactions between code pieces with similar goals related to a parent process.
A process is a set of instruction intended to perform a particular task, the idea of the thread is dividing the single process into multiple lightweight processes and achieve parallelism by performing the threads according to availability of resources and nature of the task.
Unlike processes which are running in different memory spaces, threads of the same process run in shared memory space.
This is a multiple answer question, meaning more than one of these may be a right...