Artificial-Intelligence
November 4, 2024CMI 2019
November 6, 2024GATE 2011
|
Question 4
|
A thread is usually defined as a “light weight process” because an operating system (OS) maintains smaller data structures for a thread than for a process. In relation to this, which of the following is TRUE?
|
On per-thread basis, the OS maintains only CPU register state
|
|
|
The OS does not maintain a separate stack for each thread
|
|
|
On per-thread basis, the OS does not maintain virtual memory state
|
|
|
On per thread basis, the OS maintains only scheduling and accounting information
|
Question 4 Explanation:
A) False, because on per thread basis OS maintains register, stack and program counter.
B) False, OS do maintain a separate stack for each thread.
C) True
D) False
B) False, OS do maintain a separate stack for each thread.
C) True
D) False
Correct Answer: C
Question 4 Explanation:
A) False, because on per thread basis OS maintains register, stack and program counter.
B) False, OS do maintain a separate stack for each thread.
C) True
D) False
B) False, OS do maintain a separate stack for each thread.
C) True
D) False
