Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A thread is usually defined as a "light ... 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" beca...
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" beca...
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.
Free Test
Community Answer
A thread is usually defined as a "light weight process" beca...
Virtual Memory State for Threads
Maintaining virtual memory state for threads is essential for the operating system to ensure proper memory management and isolation between threads. Each thread typically has its own virtual memory space, which includes its own address space and memory mappings. This allows threads to operate independently and not interfere with each other's memory operations.

Importance of Virtual Memory State
Virtual memory state includes information such as the memory mappings, page tables, and permissions for each thread. Without maintaining this information on a per-thread basis, threads could potentially access or modify memory that belongs to other threads, leading to data corruption or security vulnerabilities.

Operating System Responsibilities
The operating system is responsible for managing virtual memory for each thread, ensuring that memory accesses are properly isolated and protected. By maintaining virtual memory state on a per-thread basis, the OS can enforce memory protection mechanisms and provide a secure environment for thread execution.

Conclusion
In summary, the statement that "On a per-thread basis, the OS does not maintain virtual memory state" is false. Virtual memory state is crucial for proper memory management and isolation between threads, and the operating system must maintain this information for each thread to ensure reliable and secure execution.
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