Question

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.

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

A multithreaded process consist of a working set for the entire process.This is because it allows multiple threads of the entire process to execute in parallel on microprocessors..It also allows another thread to run when a thread makes a blocking system call.This ensures if one thread is executing then the another thread waits and as soon as the lock is released ,another thread starts executing sequentiall.This allows all the threads to execute one by one leading to the working of the entire process.It makses sure the process never stops and it keeps working.The main purpose is to ensure continous business operations by executing multiple threads.

Add a comment
Know the answer?
Add Answer to:
A system provides support for user-level and kernel-level threads. The mapping in this system is one...
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.

  • 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)

  • In order to fully utilize multiprocessor machines, it is important to guarantee that we use kernel-level...

    In order to fully utilize multiprocessor machines, it is important to guarantee that we use kernel-level thread libraries over multithreaded kernel. a)Compare the performance if we use a user-level thread library on top of (i) non-multithreaded kernel or (ii) multithreaded kernel. Are their performance similar or (i) is better than (ii) or (ii) is better than (i)? Justify your answer. b) Discuss whether blocking problem occurs for both cases in (a). The blocking problem here means that if one user-level...

  • short answer (6%) List three main advantages to the use of user level threads instead of...

    short answer (6%) List three main advantages to the use of user level threads instead of kernel level threads o) List the two distinct disadvantages of user level threads compared to kernel level threads and discuss how to (6% work around these two problems. (6%) when process A is preempted during execution and process B is sc that must be performed, step by step, before the CPU can execute th e instructions of process B?

  • 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.

  • 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.

  • Do the following project: Following is the file to be programmed in Linux kernel. Run this...

    Do the following project: Following is the file to be programmed in Linux kernel. Run this program. Include the screenshot of the results. Multi threaded Sorting Application Write a multithreaded sorting program that works as follows: A list of integers is divided into two smaller lists of equal size. Two separate threads (which we will term sorting threads) sort each sub list using a sorting algorithm of your choice. The two sub lists are then merged by a third thread—a...

  • How does a multicore computer with shared memory differ from a distributed or a clustered system...

    How does a multicore computer with shared memory differ from a distributed or a clustered system with respect to the OS? Make specific reference to the OS kernel. b. Briefly explain the difference between processes and threads. c. Threads on a single core system are often handled in user mode. Explain why this is not acceptable on a multicore computer. d. Explain at least 2 ways that the OS can handle threads on a multicore computer.

  • Debugging and testing multithreaded programs is made more difficult compared to dealing with single-threaded programs by...

    Debugging and testing multithreaded programs is made more difficult compared to dealing with single-threaded programs by: 1. the necessity to divide activities into separate and concurrent tasks 2. the existence of many more different execution paths made possible by parallel thread execution 3. multithreading library APIs with confusing semantics -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Consider the following code that creates N threads using the POSIX threading library. The thread function threadFun receives as parameter a thread index (from 0 to N-1). #define NTHREADS 4...

  • Question 4 An information system is a system that provides relevant information to support a given...

    Question 4 An information system is a system that provides relevant information to support a given activity or groups of activities in a given organizational set-up. In your own words, illustrate FOUR generic information systems which are used across industry and commerce to support organizational activities b). Use a suitable diagram to illustrate expert systems which have been developed for number of generic application areas. In your own words, illustrate FOUR generic expert system applications in machine learning Ic) A...

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