Question

Suppose you build a system using a staged architecture with some fixed number of threads operating...

Suppose you build a system using a staged architecture with some fixed number of threads operating
in each stage. Assuming each stage is individually deadlock free, describe two ways to guarantee
that your system as a whole cannot deadlock. Each way should eliminate a different one of the 4
necessary conditions for deadlock.

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

Solution

The two ways are:

1.The mutex is placed while the process is executing and other processes have to wait.

2.The mutex is removed and the next process in queue can access the resource and again mutex is placed.This avoids deadlock in both the situations.

---

all the best

Add a comment
Know the answer?
Add Answer to:
Suppose you build a system using a staged architecture with some fixed number of threads operating...
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
  • T/F question about operating system, thank you 1. A deadlocked system must involve at least two...

    T/F question about operating system, thank you 1. A deadlocked system must involve at least two threads/processes that are deadlocked. 2. If all 4 following conditions hold in a system: mutual exclusion, hold and wait, circular waiting, and no pre-emption, then a deadlock must occur. 3. In avoidance strategy, the OS may refuse to allocate requested resources if there is a potential for a deadlock. 4. Given a reusable resource graph representing a state S, state S is a deadlock...

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

  • In this assignment, you will implement a Memory Management System(MMS). Using C Programming Language..... MAKE SURE...

    In this assignment, you will implement a Memory Management System(MMS). Using C Programming Language..... MAKE SURE YOU USE C PROGRAMMING Your MMS will handle all requests of allocation of memory space by different users (one thread per user) …. HINT(You will use Pthreads and Semaphores). Your MMS will provide the user with an interface for making memory requests and also for freeing up memory that is no longer needed by the user. One of the jobs of your memory management...

  • Part 2: Weighted Dice Suppose that I have some weighted dice with the following ‘probability distribution’:...

    Part 2: Weighted Dice Suppose that I have some weighted dice with the following ‘probability distribution’: Outcome 1 2 3 4 5 6 Probability 1/8 1/8 1/8 2/8 2/8 2/8 1) Is this a discrete or continuous probability distribution? What is wrong with it? 2) Here is a fixed version. Verify that it is a valid probability distribution. To do this, check that the first two probability rules apply. Outcome 1 2 3 4 5 6 Probability 1/9 1/9 1/9...

  • In Unix/Linux, input and output are treated as files and referenced by the operating system using file descriptors. When you open a shell session, for example, three file descriptors are in use: 0 st...

    In Unix/Linux, input and output are treated as files and referenced by the operating system using file descriptors. When you open a shell session, for example, three file descriptors are in use: 0 standard input (stdin) 1 standard output (stdout) 2 standard error (stderr) By default, the command interpreter (shell) reads keyboard input from file descriptor 0 (stdin) and writes output to file descriptor 1 (stdout), which appears on the screen. As you explored in Lab 2, input/output can be...

  • A new version of the operating system is being planned for installation into your department’s production...

    A new version of the operating system is being planned for installation into your department’s production environment. What sort of testing would you recommend is done before your department goes live with the new version? Identify each type of testing and describe what is tested. Explain the rationale for performing each type of testing. [ your answer goes here ] Would the amount of testing and types of testing to be done be different if you were installing a security...

  • Suppose you have been hired as a financial consultant to Defense Electronics, Inc. (DEI), a large,...

    Suppose you have been hired as a financial consultant to Defense Electronics, Inc. (DEI), a large, publicly traded firm that is the market share leader in radar detection systems (RDSs). The company is looking at setting up a manufacturing plant overseas to produce a new line of RDSs. This will be a five-year project. The company bought some land three years ago for $4.5 million in anticipation of using it as a toxic dump site for waste chemicals, but it...

  • Suppose you have been hired as a financial consultant to Defense Electronics, Inc. (DEI), a large,...

    Suppose you have been hired as a financial consultant to Defense Electronics, Inc. (DEI), a large, publicly traded firm that is the market share leader in radar detection systems (RDSs). The company is looking at setting up a manufacturing plant overseas to produce a new line of RDSs. This will be a five-year project. The company bought some land three years ago for $4.5 million in anticipation of using it as a toxic dump site for waste chemicals, but it...

  • Suppose you have been hired as a financial consultant to Defense Electronics, Inc. (DEI), a large,...

    Suppose you have been hired as a financial consultant to Defense Electronics, Inc. (DEI), a large, publicly traded firm that is the market share leader in radar detection systems (RDSs). The company is looking at setting up a manufacturing plant overseas to produce a new line of RDSs. This will be a five-year project. The company bought some land three years ago for $4.5 million in anticipation of using it as a toxic dump site for waste chemicals, but it...

  • 1.Pre-Lab Questions What are two ways that some prokaryotes are able to survive in extreme environments?...

    1.Pre-Lab Questions What are two ways that some prokaryotes are able to survive in extreme environments? Describe three ways that microorganisms in soil contribute to the ecosystem as a whole. Give two examples of genera that produce endospores, and explain why they are important in human health. What are coliforms? Why are they important in assuring water quality? Why is E. coli the indicator bacterium for fecal contamination? 2.Experiment 1: Bacterial Isolation from Soil Samples Post-Lab Questions Observe the two...

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