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
John thinks that the only way to consume hotdogs, denoted by H, and buns, denoted by...
John thinks that the only way to consume hotdogs, denoted by H, and buns, denoted by B, are together in equal proportions. Hotdogs and buns cost Ph and Pb , respectively, and John has m dollars to spend on the two goods. All this means that John's demand function for hotdogs looks as follows: H= (m/Ph+Pb). The price of a hotdog is twice as high as the price of a bun. a) Derive the price elasticity of John's demand for...
Research Questions for Student Groups Each student group will be assigned one of the topics below...
Research Questions for Student Groups Each student group will be assigned one of the topics below to research in some detail and prepare a short, -minute PowerPoint presentation on it. Th ey will then use their PowerPoint presentation to explain the topic to their fellow students at the next class period. . Provide a brief overview of recombinant DNA technology. What are restriction enzymes? What are plasmids? . Who are Stanley Cohen and Herbert Boyer and what was their role...
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...
Normative economic analysis tends to include the way someone thinks things should be or ought to...
Normative economic analysis tends to include the way someone thinks things should be or ought to be. generate testable hypotheses. lead to empirical testing of data. involve descriptive statements.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT