Question

In: Computer Science

Operating system: A CS student assigned to work on deadlocks thinks of the following way to...

Operating system:

A CS student assigned to work on deadlocks thinks of the following way to eliminate deadlocks. When a process requests a resource , it specifies a time limit. if the process blocks because the resource is not available , a timer is started. If the time limit is exceeded, the process is released and allowed to run again. If you were the professor, what grade would you give this proposal and why?

Solutions

Expert Solution

Suppose we have two process P1 and P2. And one instance each of resource R1 and R2.

Both the process requires one instance of R1 and one instance of R2 to execute.

Suppose P1 acquires R1 and gets preempted. Then P2 acquires R2 and gets preeempted. Then P1 again runs and gets blocked for trying to acquire R2 and P2 again gets blocked trying to acquire P2. Thus both are blocked and now both of them will restart again since they are in deadlock. Suppose both of them start again and the same situation arises. Thus the two process will repeatedly acquire resource, get blocked and restart.

This situation might happen. So I would rate 3/10 since there is a very rare of solving deadlock.

One of suggestion I would give is to acquire the resource in same order. That is first acquire R1, then R2 then R3 and so on......

If you have any questions comment down. Please don't simply downvote and leave. If you are satisfied with answer, please? upvote thanks


Related Solutions

1. You are a student assigned to observe in the operating room.
 1. You are a student assigned to observe in the operating room. During the preparations for the surgery, you notice that the healthcare provider touches the sterile field before donning sterile gloves. What, if any, action will you take? 2. You are assigned to teach a patient with bladder problems how to perform self-catheterizations at home. The  health-care provider tells you to teach the patient to do this using medical asepsis rather than surgical asepsis. What is the rationale for such an...
At a university, each student is assigned a system login name, which the student uses to...
At a university, each student is assigned a system login name, which the student uses to log into the campus computer system. Write the code that generates system login names for students. You will use the following algorithm to generate a login name: Get the first three characters of the student’s first name. (If the first name is less than three characters in length, use the entire first name.) Get the first three characters of the student’s last name. (If...
As a senior student you are assigned to work with a preceptor in the Emergency Department....
As a senior student you are assigned to work with a preceptor in the Emergency Department. It is a very busy day and it seems as if every patient, regardless of chief complaint, has an issue with fluid, electrolyte, and/or acid-base balance. The first patient you see is a 37-year-old landscaper who is brought to the ED after collapsing on a job at the local country club. He is slightly confused but is able to tell you he feels dizzy...
1. A nursing student is assigned to work in a heart failure clinic that focuses on...
1. A nursing student is assigned to work in a heart failure clinic that focuses on preventing and reducing heart disease. The clinic is experiencing a steady increase in the number of patients with heart failure. • What could be contributing factors to the increase in patients presenting with heart failure? • What impact are these factors having on health care? 2. The nursing student is observing the RN planning the discharge of a patient who has poorly controlled diabetes....
You are a nursing student assigned to work in groups to do a presentation for your...
You are a nursing student assigned to work in groups to do a presentation for your leadership/management class. There will be four of you in the work group, and you have been appointed the group leader. The project requires the group to create a 40-minute presentation that examines the controversy around educational entry into practice for nurses. No one in the group has any special expertise about this topic. PowerPoint presentations must be used, handouts must be created, and a...
In what way are the following topics significant and relevant to YOU as student and as...
In what way are the following topics significant and relevant to YOU as student and as human person. (200 words per number and firts person point of view) 1. on Health Education 2. on HIV/AIDS 3. on COVID19 4. on drug addiction 5. on smoking and alcohism
The following study states that a medical worker is assigned to work where inpatients are radiographed....
The following study states that a medical worker is assigned to work where inpatients are radiographed. Midmorning the radiology tech receives a request to perform an abdominal series on a 87 year old female patient, Wilma Schanck, who must come down by gurney. By the time the patient arrives in your room, it is only 30 minutes before your lunch break. You begin by taking the chest image with Mrs. Schanck still on the gurney. After this image, you decide...
"Teamwork" Please respond to the following: Your professor assigned you to work in a small group...
"Teamwork" Please respond to the following: Your professor assigned you to work in a small group with three other students that you’ve never worked with before. She expects each person to equally participate and to complete the work by the designated deadline. However, two of the members are never available to meet and refuse to do any work. How do you resolve this conflict, and why? Choose one of the following: Explain that you need their help (emphasizing the need...
create a python program You are assigned to implement the following baggage-check-in system at the airport....
create a python program You are assigned to implement the following baggage-check-in system at the airport. The system keeps track of data for the following information: passenger, bags, and tickets. The program must maintain passenger details like name, address, phone number, and the number of bags. Each passenger can have multiple bags and each bag has length, width, height, and weight. The passenger also has a ticket. The tickets are of two types, either a first-class ticket or an economy-ticket....
Design a system that shows a simplified automatic car wash system with the following operating conditions:...
Design a system that shows a simplified automatic car wash system with the following operating conditions: - Water level needs to be maintained at water level (> Lower limit and < Upper limit ) at all times to ensure the water pressure is sufficient for the wash cycle. - 2 Possible errors: - Water level exceeds upper limit or water level falls below lower limit - Car move away while washing process is ongoing - System shall stop if the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT