GATE Exam  >  GATE Questions  >  Which one of the following is FALSE?a)User le... Start Learning for Free
Which one of the following is FALSE?
  • a)
    User level threads are not scheduled by the kernel.
  • b)
    When a user level thread is blocked, all other threads of its process are blocked.
  • c)
    Context switching between user level threads is faster than context switching between kernel
    level threads.
  • d)
    Kernel level threads cannot share the code segment
Correct answer is option 'D'. Can you explain this answer?
Most Upvoted Answer
Which one of the following is FALSE?a)User level threads are not sched...
False Statement: d) Kernel level threads cannot share the code segment

Explanation:

Kernel Level Threads:
- Kernel level threads are managed and scheduled by the operating system kernel.
- Each kernel level thread has its own program counter (PC), register set, and stack.
- Kernel level threads are more expensive in terms of context switching as it involves switching between different kernel stacks and saving and restoring the entire register set.

User Level Threads:
- User level threads are managed by a user-level thread library.
- All the threads of a process share the same program counter, register set, and stack.
- User level threads are lighter in terms of context switching as it only involves switching the thread's program counter and register set.

Explanation of False Statement:
d) Kernel level threads cannot share the code segment

This statement is false because kernel level threads can share the code segment. When multiple kernel level threads are created within a process, they all share the same code segment. The code segment contains the instructions that are executed by the threads. Sharing the code segment allows multiple threads to execute the same code concurrently.

Sharing the code segment among kernel level threads has several advantages:
1. Memory Efficiency: Since multiple threads can share the same code segment, it saves memory as each thread does not need its own copy of the code.
2. Consistency: Sharing the code segment ensures that all threads execute the same version of the code, maintaining consistency.
3. Code Reusability: Multiple threads can execute the same code, enabling code reusability and reducing the need for duplication.

In contrast, user level threads do not share the code segment. Each user level thread has its own code segment because the thread library manages the threads at the user level, and the code segment is specific to each thread.

Therefore, the false statement is option d) Kernel level threads cannot share the code segment.
Explore Courses for GATE exam
Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer?
Question Description
Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer? for GATE 2025 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer? covers all topics & solutions for GATE 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer?.
Solutions for Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer?, a detailed solution for Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer? has been provided alongside types of Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Which one of the following is FALSE?a)User level threads are not scheduled by the kernel.b)When a user level thread is blocked, all other threads of its process are blocked.c)Context switching between user level threads is faster than context switching between kernellevel threads.d)Kernel level threads cannot share the code segmentCorrect answer is option 'D'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
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