Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  While designing a kernel, an operating system... Start Learning for Free
While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?
1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.
2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.
  • a)
    1 only
  • b)
    2 only
  • c)
    1 and 2 only
  • d)
    None of these
Correct answer is option 'A'. Can you explain this answer?
Verified Answer
While designing a kernel, an operating system designer must decide whe...
Kernel level threading may be preferrable to user level threading because storing information about user level thread in a PCB would create a security risk i.e. with each access to the non-critical services. We are going to the domain where both critical and non-critical services are residing. Any harm in this domain may creates problems to the critical services. Hence Kernel level threading is preferable.
View all questions of this test
Most Upvoted Answer
While designing a kernel, an operating system designer must decide whe...
Kernel-level threading vs User-level threading

Introduction:
When designing a kernel, an operating system designer needs to make a decision about whether to support kernel-level threading or user-level threading. Each approach has its own advantages and disadvantages. Let's take a closer look at the statements provided and evaluate their validity.

Statement 1: Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.

- In kernel-level threading, the operating system kernel manages the threads directly. This means that the kernel has complete knowledge of all the threads in the system and can schedule them more efficiently.
- On the other hand, in user-level threading, the thread management is handled by a user-level library or runtime system. The operating system kernel is not aware of the individual threads and treats the process as a single entity.
- Storing information about user-level threads in the process control block would indeed create a security risk. This is because user-level threads are managed by the user-level library, and exposing this information to the kernel would allow unauthorized access and manipulation of the thread data.

Statement 2: User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.

- In user-level threading, if one thread blocks on I/O, the other threads within the same process can continue to execute. This allows for better utilization of system resources and can lead to improved overall performance.
- In kernel-level threading, if one thread blocks on I/O, the entire process is blocked until the I/O operation is completed. This can result in decreased system responsiveness and degraded performance.

Conclusion:
Based on the analysis above, we can conclude that Statement 1 is true. Storing information about user-level threads in the process control block would indeed create a security risk. However, Statement 2 is not necessarily true in all cases. The preference for user-level threading over kernel-level threading depends on the specific requirements and characteristics of the operating system being designed.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect answer is option 'A'. Can you explain this answer?
Question Description
While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect 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 While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect 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 While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect answer is option 'A'. Can you explain this answer?.
Solutions for While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect 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 While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect answer is option 'A'. Can you explain this answer?, a detailed solution for While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect answer is option 'A'. Can you explain this answer? has been provided alongside types of While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice While designing a kernel, an operating system designer must decide whether to support kernel- level or user-level threading. Which of the following statements is/are true?1. Kernel-level threading may be preferable to user-level threading because storing information about user-level threads in the process control block would create a security risk.2. User-level threading may be preferable to kernel-level threading because in user-level threading, if one thread blocks on I/O, the process can continue.a)1 onlyb)2 onlyc)1 and 2 onlyd)None of theseCorrect 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