Question

7- For each of the following systems, which deadlock strategy would you lmplement? Justity a. OS running on a student laptop (1 pt) b. OS in a self-driving car (1 pt) c. Computer that can afford a deadlock for no more than 5 minutes (2 pts)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:-

a)

Deadlock

Deadlocks are a set of blocked processes each holding a resource and waiting to acquire a resource held by

another process.

-How to avoid these Deadlock their are four ways we can do that as follows

Mutual Exclusion

Resources shared such as read-only files do not lead to deadlocks but resources, such as printers and tape drives,

requires exclusive access by a single process.

Hold and Wait

In this condition processes must be prevented from holding one or more resources while simultaneously waiting for

other processes.

NO Preemption

Preemption of process resource allocations can avoid the condition of deadlocks, where ever possible.

Circular Wait

Circular wait can be avoided if we number all resources, and require that processes request resources only in

strictly increasing(or decreasing) order.

Handling Deadlock

Their are two strategies to avoid deadlock as follows

Preemption

We can take a resource from one process and give it to other. This will resolve the deadlock situation, but

sometimes it does causes problems.

Rollback

In situations where deadlock is a real possibility, the system can periodically make a record of the state of each

process and when deadlock occurs, roll everything back to the last checkpoint, and restart, but allocating resources

differently so that deadlock does not occur.

b)

Self-driving car also known as Automated guided vehicles

-This are used as a transportation means in many industrial fields. Taking advantage of their flexibility in routing and

scaling, AGV systems were traditionally employed in automated manufacturing systems as material handling

systems to transport pieces or parts among various workstations.

-As there are normally multiple vehicles in systems, traffic control is necessary to resolve motion conflicts among

the vehicles. In particular, vehicle collisions and deadlocks should be prevented to avoid substantial production

interruptions. Furthermore, for a system with a large number of vehicles in some applications, effective and efficient

traffic control is also important to achieve desirable system performance.

-Traditionally and still currently, Self-driving car system move along a predefined guide-path system connecting key

locations in the workspace, which eases the motion control and guidance of the vehicles, yet sets limitations on the

flexibility and scalability of the system. The literature and industrial practice have witnessed a growing interest in

developing free-ranging Self-driving car systems, in which the vehicles can choose any possible path to move

between two locations.

-This type of system is expected by some researchers to provide shorter transportation distances better utilization

of the workspace and more flexible deadlock and congestion avoidance mechanisms. However, performance

comparisons between free-ranging Self-driving car systems and those with a fixed guide-path are very rarely seen

besides, it seems that convincing conclusions have not yet been drawn on which type would perform better with

dence vehicles.

c)

-A deadlock is a condition in a system where a process cannot proceed because it needs to obtain a resource held

by another process but it itself is holding a resource that the other process needs.

-A computer system which allows more than one process to be simultaneously active, holding and requesting

resources, may encounter the phenomenon of deadlock

-Deadlock occurs so infrequently that it is not worthwhile to degrade system performance by executing prevention

algorithms. When deadlock situation arise in an online computer system, the system cannot respond within an

acceptable period of time.

-This is particularly true in process control applications, where a very quick response is required of computer

systems. According to Coffman approaches to this problem can be classified in three categories.

1) Prevention Approach

The uses of resources are restricted so that system deadlock will never occur.

2) Deadlock avoidance

Pre-claim strategy used in operating system. And not effecting in database environment.

3) Deadlock detection

If transaction is blocked is blocked due to another transaction make sure that transaction is not blocked on the first

transaction, either directly or indirectly via another transaction.

Add a comment
Know the answer?
Add Answer to:
7- For each of the following systems, which deadlock strategy would you lmplement? Justity a. OS...
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
  • Page 7 i. State which reaction in each of these pairs that you would expect to...

    Page 7 i. State which reaction in each of these pairs that you would expect to be faster. (1 pt.) Explain why you would expect your choice to be faster. (2 pts.) 11. a. The Sn2 displacement with hydroxide ion on (CH3)3CCI or CH3CI.

  • In which of the following numeric systems can you have two versions of zero? You may...

    In which of the following numeric systems can you have two versions of zero? You may select more than one answer, but note that each incorrect answer will result and get full value. (Your final score for the question can never be less than ) a partial reduction in your score for the question - so you can't just select every answer Select one or more: a. Excess-M b. Signed magnitude C. Two's complement d. One's complement Assuming a signed...

  • For each of the following, indicate which hypothesis offers the best explanation. 1. Jeffrey went to...

    For each of the following, indicate which hypothesis offers the best explanation. 1. Jeffrey went to sunrise coffee shop to work on his screenplay. But when he opened his backpack, Jeffrey discovered in his horror that his laptop was missing. The backpack was on Jeffrey’s back for the entire bus ride to the coffee shop, but he was in a hurry packing up his stuff in his apartment this morning. Explanation 1: A master thief stole the laptop out of...

  • In the following questions and activity, you demonstrate your understanding of the file-system interface and implementation....

    In the following questions and activity, you demonstrate your understanding of the file-system interface and implementation. These are critical features of the way we use computers. Questions: 1. Some operating systems keep track of the file type, while others leave it up to the user. Which is better and why? 2. In most operating systems, the subdirectories can be read and changed by users, just as ordinary files can be. What is a protection problem that could arise? How can...

  • California and Nevada are adopting electronic medical records (EMR) systems, provided by either Kareo or Praxis....

    California and Nevada are adopting electronic medical records (EMR) systems, provided by either Kareo or Praxis. Each state has a preference for using one of these systems rather than the other, but all else equal, both states would like to use the same system since doing so makes it easier to coordinate healthcare for people who commute across state lines. 3 Coordinated care (9 pts.) California and Nevada are adopting electronic medical records (EMR) systems, provided by either Kareo or...

  • 3. State which reagent you would expect to be more nucleophilic (1 pt.) ii. Explain why...

    3. State which reagent you would expect to be more nucleophilic (1 pt.) ii. Explain why you would expect your choice to be more nucleophilic (2 pts.) a) CH CH.OH or CH CHO b) Ph-5 or Ph-O-

  • 3 Coordinated care (9 pts.) California and Nevada are adopting electronic medical records (EMR) systems, provided...

    3 Coordinated care (9 pts.) California and Nevada are adopting electronic medical records (EMR) systems, provided by either Kareo or Praxis. Each state has a preference for using one of these systems rather than the other, but all else equal, both states would like to use the same system since doing so makes it easier to coordinate healthcare for people who commute across state lines. Nevada | Kareo Praxis Kareo 6,1 0,0 California Praxis | 0,0 3,5 a. (1 pt.)...

  • Answer for both please! Question 7 1 pts Which of the following would potentially cause the...

    Answer for both please! Question 7 1 pts Which of the following would potentially cause the economy to grow slower More government spending More investment More exports More imports Question 8 1 pts Using the circular flow, which of the following would potentially cause the economy to grow faster More government spending More taxes More imports More savings

  • *5. Which computer based optimization technique would you recommend for each of the following objective functions?...

    *5. Which computer based optimization technique would you recommend for each of the following objective functions? Please justify your answer briefly in each case Powell's quartic function (z1+102)2+5(z3 -4)2 +(-23)4 + 10(21-24)4; 3,-1,0,1 x(0,0,0,0)7. f(x) Fletcher and Powell's helical valley: 100 ((z3100,2))? f(x) (-) + if 0 arctan where 2m0(1,) if <0 1 Tarctan (-1,0,07 1,0,07. x A non-linear function of three variables: f(x) +sin + exp 1+ (1-2)2 0,1,2; x 1, 1, 17 *5. Which computer based optimization technique...

  • 1. Which type of correlation would you expect to find associated with the height of an...

    1. Which type of correlation would you expect to find associated with the height of an individual and the incidence of winning the lottery pos. cor b) negative cor c) zero 2. Which type of correlation would you expect to find associated with the number of credits that student takes per semester and the tuition charge for this student Pos b) neg c) zer0 3. A study reported that the mean time to distraction for college students working on 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