Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A thread is usually defined as a light weight... 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 followings 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 'A'. Can you explain this answer?
Most Upvoted Answer
A thread is usually defined as a light weight process because an opera...
Thread as a Light Weight Process

Definition of Thread
A thread is a basic unit of CPU utilization. It is a lightweight process and can be considered as a separate path of execution within a program. Threads share the same memory and resources of a process, thus making it more efficient than processes.

Comparison between Thread and Process
A process is a container for a set of threads, which share the same memory space. A process can have several threads, and each thread has its own register set and stack. However, a process can only have one address space.

Why is Thread Considered as a Light Weight Process?
A thread is usually defined as a lightweight process because an operating system (OS) maintains smaller data structures for a thread than for a process. This is because threads share the same resources and memory space of a process, therefore, the OS does not need to maintain a separate copy of resources for each thread.

What Data Structures Does the OS Maintain for a Thread?
The OS maintains the following data structures for a thread:

- CPU register state: The OS maintains only the CPU register state for a thread, which includes the program counter (PC), stack pointer (SP), and general-purpose registers (GPRs).
- Stack: Each thread has its own stack, which is used to store local variables and function parameters. The OS maintains a separate stack for each thread.
- Virtual memory state: The OS maintains virtual memory state for each thread, which includes page tables and segment registers.
- Scheduling and accounting information: The OS maintains scheduling and accounting information for each thread, such as priority, state, and CPU time.

Conclusion
In summary, a thread is considered a lightweight process because it shares the same memory and resources of a process, and the OS maintains smaller data structures for a thread than for a process. The OS maintains only the CPU register state for a thread, and each thread has its own stack, virtual memory state, and scheduling and accounting information.
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 followings 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 'A'. 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 followings 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 'A'. 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 followings 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 'A'. 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 followings 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 'A'. 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 followings 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 'A'. 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 followings 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 'A'. 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 followings 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 'A'. 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 followings 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 'A'. 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 followings 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 'A'. 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 followings 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 'A'. 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