Question

In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) A process declaring...

In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) A process declaring its maximum need as maximum possible for each resource. In other words, if a resource A has 5 instances, then each process declares its maximum need as 5. (ii) A process declaring its minimum needs as maximum needs. For example, a process may need 2-5 instances of resource A. But it declares its maximum need as 2

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
In deadlock avoidance using banker’s algorithm, what would be the consequence(s) of: (i) A process declaring...
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
  • Code the Bankers' algorithm for deadlock avoidance as described in lecture. Apply this algorithm against the...

    Code the Bankers' algorithm for deadlock avoidance as described in lecture. Apply this algorithm against the following data displaying the Work, Need and Allocation matrices for each pass of the algorithm provided a safe state exists. Process       Allocation   Max            Available                    A B C D      A B C D      A B C D P0               0 0 1 2       0 0 1 2       1 5 2 0 P1                1 0 0 0       1 7 5 0 P2               1 3 5 4      ...

  • Part B (10) Deadlock Avoidance Consider the following maximum-claim reusable resource system with four processes and...

    Part B (10) Deadlock Avoidance Consider the following maximum-claim reusable resource system with four processes and three resource types. The maximum claim matrix is given by C [4 3 5 11 1 41 1 4 6 13 1 6] where Cij denote maximum claim of process i for resourcej. The total units of each resource type are given by the vector (5, 8, 15). The current allocation of resources is given by the matrix To 1 4] 2 0 1...

  • resource instances of the same type, being shared by processes maz, is maximum resource needs of...

    resource instances of the same type, being shared by processes maz, is maximum resource needs of Pi, where 2 mar, S m n. Assume that a process can request one resource at a time during execution. Answer 7. (20 pts) Consider a system of m P, P Pa where m 22. Suppose the following questions about deadlock among the various processes A: Suppose m 5 printers and n 2 processes in a system, with mazi 3 and mar2 4. Identify...

  • a. A system has two processes and three identical resources. Each process needs a maximum of...

    a. A system has two processes and three identical resources. Each process needs a maximum of two resources. Is deadlock possible? Explain your answer. b. A system has 4 processes, P1 through P4, and 5 types of resources, R1 through R5. Existing resource vector E = (3, 2, 1, 2, 2) Current allocation matrix C = R1 R2 R3 R4 R5 P1 1 1 0 0 0 P2 0 0 1 0 0 P2 1 0 0 20 P4 0...

  • Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In...

    Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In this scheme, some procedure is used to identify when a deadlock occurs, and then another procedure is used to deal with the blocked processes. One technique to identify a deadlock is to maintain a resource graph that identifies all processes, all resources, and the relationships between them (that is, which processes exclusively own which resources, and which processes are blocked waiting for which...

  • 1. What is the minimum number of locations a binary search algorithm will have to examine...

    1. What is the minimum number of locations a binary search algorithm will have to examine when looking for a particular value in a sorted array of 200 elements? (2 points) 1 6 7 8 200 2. In general, which of the following sorting algorithms is the MOST efficient? (2 points) Bubble sort Insertion sort Heap sort Merge sort Selection sort 3. Which of the following are quadratic-sorting algorithms? (2 points) I. insertion sort II. selection sort III. merge sort...

  • A system consists of 1 CPU, 1 Disk, and 1 Network Interface. A web server running...

    A system consists of 1 CPU, 1 Disk, and 1 Network Interface. A web server running on this system consists of a process that waits for an HTTP request. Once the request is received, the process services it by fetching the requested file from disk (an I/O operation) and then by sending the file content to the client. Assume that serving a request consists of the following phases: i. Process uses the CPU for 2 msec (parse request) // CPU...

  • I need answer of 10th question. Chapter 5 Process Synchronization 7. Consider a system with 14...

    I need answer of 10th question. Chapter 5 Process Synchronization 7. Consider a system with 14 dedicated devices of the same type. All jobs cur- a maximum of five devices to complete rently running on this system require a mi their execution, but they each run for long periods of time with just three devices, and request the remaining two only at the very end of the run. Assume that the job stream is endless and that your operating system's...

  • I have done the a and b, but i'm so confuse with other questions, could someone help me to fix these questions, thanks so much. 4 Directed graphs Directed graphs are sometimes used operating syst...

    I have done the a and b, but i'm so confuse with other questions, could someone help me to fix these questions, thanks so much. 4 Directed graphs Directed graphs are sometimes used operating systems when trying to avoid deadlock, which is a condition when several processes are waiting for a resource to become available, but this wil never happen because Page 2 p2 T2 Figure 1: Minimal example of a resource allocation graph with deadlock other processes are holding...

  • A.) show that the following algorithm does not correctly solve this problem, by giving an instance...

    A.) show that the following algorithm does not correctly solve this problem, by giving an instance on which it does not return the correct answer B.) Give an efficient algorithm that takes values for l1, l2,...,ln and h1, h2, hn and returns the value of an optimal plan Suppose you're managing a consulting team of expert computer hackers, and each week you have to choose a job for them to undertake. Now, as you can well imagine, the set of...

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