Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A thread is usually defined as a "light w... Start Learning for Free
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?
  • a)
    On per-thread basis, the OS maintains only CPU register state
  • b)
    The OS does not maintain a separate stack for each thread
  • c)
    On per-thread basis, the OS does not maintain virtual memory state
  • d)
    On per-thread basis, the OS maintains only scheduling and accounting information
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
A thread is usually defined as a "light weight process" becaus...
Threads share address space of Process. Virtually memory is concerned with processes not with Threads. A thread is a basic unit of CPU utilization, consisting of a program counter, a stack, and a set of registers, (and a thread ID.) As you can see, for a single thread of control - there is one program counter, and one sequence of instructions that can be carried out at any given time and for multi-threaded applications-there are multiple threads within a single process, each having their own program counter, stack and set of registers, but sharing common code, data, and certain structures such as open files.
Option (A): as you can see in the above diagram, NOT ONLY CPU Register but stack and code files, data files are also maintained. So, option (A) is not correct as it says OS maintains only CPU register state.
Option (B): according to option (B), OS does not maintain a separate stack for each thread. But as you can see in above diagram, for each thread, separate stack is maintained. So this option is also incorrect.
Option (C): according to option (C), the OS does not maintain virtual memory state. And It is correct as Os does not maintain any virtual memory state for individual thread.
Option (D): according to option (D), the OS maintains only scheduling and accounting information. But it is not correct as it contains other information like cpu registers stack, program counters, data files, code files are also maintained.
View all questions of this test
Most Upvoted Answer
A thread is usually defined as a "light weight process" becaus...
Explanation:
A thread is a lightweight process that can be managed by the operating system. Threads share the same memory space and resources of a process, but each thread has its own stack space and a set of CPU registers. The OS maintains smaller data structures for a thread than for a process, making it more efficient to switch between threads than between processes.

The given options state different aspects of what an OS maintains for a thread. Let's analyze each option to identify the correct one:

a) On per-thread basis, the OS maintains only CPU register state - This option is incorrect because the OS maintains not only the CPU register state but also the stack space and virtual memory state for each thread.

b) The OS does not maintain a separate stack for each thread - This option is incorrect because each thread has its own separate stack space that is required for storing local variables and function calls.

c) On per-thread basis, the OS does not maintain virtual memory state - This option is correct because the virtual memory state is maintained for the entire process, not for individual threads. Each thread shares the same virtual memory space of the process.

d) On per-thread basis, the OS maintains only scheduling and accounting information - This option is incorrect because the OS maintains not only scheduling and accounting information but also the CPU register state, stack space, and other thread-specific data structures.

In conclusion, option 'C' is the correct answer because the OS does not maintain a separate virtual memory state for each thread.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer?
Question Description
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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about 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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for 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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer?.
Solutions for 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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of 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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of 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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer?, a detailed solution for 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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer? has been provided alongside types of 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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice 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?a)On per-thread basis, the OS maintains only CPU register stateb)The OS does not maintain a separate stack for each threadc)On per-thread basis, the OS does not maintain virtual memory stated)On per-thread basis, the OS maintains only scheduling and accounting informationCorrect answer is option 'C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev