Question

Given an operating system that supports a one-to-one relationship between user-level threads and kernel-level threads and...

Given an operating system that supports a one-to-one relationship between user-level threads and kernel-level threads and allows one or more threads from a process to issue blocking system calls while other threads (within that process) continue to run. What must a kernel provide for an effective user-level thread implementation?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

In this case, thread management done by the Kernel. There is no thread management code in the application area. Kernel threads are supported directly by the operating system. Any application can be programmed to be multithreaded. All of the threads within an application are supported within a single process.

The Kernel maintains context information for the process as a whole and for individuals threads within the process. Scheduling by the Kernel is done on a thread basis. The Kernel performs thread creation, scheduling and management in Kernel space. Kernel threads are generally slower to create and manage than the user threads.

ADVANTAGES

Kernel can simultaneously schedule multiple threads from the same process on multiple processes.

If one thread in a process is blocked, the Kernel can schedule another thread of the same process.

Kernel routines themselves can multithreaded.

DISADVANTAGES

Kernel threads are generally slower to create and manage than the user threads.

Transfer of control from one thread to another within same process requires a mode switch to the Kernel.

Add a comment
Know the answer?
Add Answer to:
Given an operating system that supports a one-to-one relationship between user-level threads and kernel-level threads and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider an environment in which there is a one-to-one mapping between user-level threads and kernel-level threads...

    Consider an environment in which there is a one-to-one mapping between user-level threads and kernel-level threads that allows one or more threads within a process to issue blocking system calls while other threads continue to run. Explain why this model can make multi-threaded programs run faster than their single-threaded counterparts on a uniprocessor computer.

  • A system provides support for user-level and kernel-level threads. The mapping in this system is one...

    A system provides support for user-level and kernel-level threads. The mapping in this system is one to one (there is a corresponding kernel thread for each user thread). Does a multithreaded process consist of (a) a working set for the entire process or (b) a working set for each thread? Explain WHY thoroughly.

  • In a system that does not support kernel level threads, a blocking system call made by...

    In a system that does not support kernel level threads, a blocking system call made by one thread will result in what action taken to the other threads of the same process? (If you believe no action will be taken, write “No Action,” otherwise describe what will happen to the other threads)

  • There are 3 strategies to map user to kernel threads. Briefly describe each. Which one is...

    There are 3 strategies to map user to kernel threads. Briefly describe each. Which one is used in most modern operating systems? Describe how an operating system can be viewed differently depending on the use case (e.g., administrators, users, developers, system engineers). There are 5 general areas of management that an operating system is responsible for. Name and briely describe 3 of them.

  • Suppose as an operating system designer you must choose between using either a Many-to-One or One-to-One...

    Suppose as an operating system designer you must choose between using either a Many-to-One or One-to-One Multithreading model between user and kernel threads. Describe what factors you should consider before choosing one or the other.

  • 1). The _____ supports only those services that are necessary to allow other system services (executed...

    1). The _____ supports only those services that are necessary to allow other system services (executed in user space) to run. a. max-kernel b. micro-kernel c. mini-kernel d. macro-kernel 2). _____ means having multiple programs (processes) running on one processor, whereas multiprocessing means having multiple processors. _____ typically refers to multiple processes from multiple users, whereas multithreading generally refers to multiple threads from one user process. a. Multi-GUI b. Multi-programming c. Multi-flow d. Multi-CPU 3). _____ saves disk space, results...

  • Post a 3- to 4-paragraph analysis on the operating system/programming language you chose, and its support...

    Post a 3- to 4-paragraph analysis on the operating system/programming language you chose, and its support for threading. Make sure to do the following: Summarize the threading support. Answer the following questions: Is the threading model based on kernel-level or user-level threads? What is the most significant advantage of the implementation? What is the most significant disadvantage of the implementation? Provide a scenario where this method of threading will provide the best solution and explain why.

  • Four modes vs. two modes of operationg systems (kernel / user)

    The VAX/ VMS operating system makes use of four processor access modes to facili-tate the protection and sharing of system resources among processes. The accessmode determines:• Instruction execution privileges: What instructions the processor may execute• Memory access privileges: Which locations in virtual memory the current instruc-tion may accessThe four modes are as follows:• Kernel: Executes the kernel of the VMS operating system, which includes memo-ry management, interrupt handling, and I/ O operations• Executive: Executes many of the operating system service...

  • Operating systems - synchronization/Concurrency control Assume you are given a graph that represents the relationship between...

    Operating systems - synchronization/Concurrency control Assume you are given a graph that represents the relationship between four threads (T T2, T3, T4). An arrow from one thread (Tx) to another (Ty) means that thread Tx must finish its computation before Ty starts. Assume that the threads can arrive in any order. Use semaphores to enforce this relationship specified by the graph. Be sure to show the initial values and the locations of the semaphore operations ті T2 T3 T4 //...

  • The VAX/ VMS operating system makes use of four processor access modes to facili-tate the protection...

    The VAX/ VMS operating system makes use of four processor access modes to facili-tate the protection and sharing of system resources among processes. The access mode determines:• Instruction execution privileges: What instructions the processor may execute• Memory access privileges: Which locations in virtual memory the current instruc-tion may access The four modes are as follows:• Kernel: Executes the kernel of the VMS operating system, which includes memo-ry management, interrupt handling, and I/ O operations• Executive: Executes many of the operating...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT