Do resource malfunctions that render a resource unusable generally increase or decrease the likelihood of deadlocks and indefinite postponement? Explain your answer.
What will be an ideal response?
They would tend to increase the likelihood of deadlocks and indefinite postponement. In a Banker’s-Algorithm deadlock avoidance scheme, this might have the effect of making a previously safe state unsafe. In Havender’s linear ordering, it might have the effect of removing a resource that a process already holding resources needs in order to proceed. The likelihood of indefinite postponement increases in priority-based allocation schemes for low- priority processes.
You might also like to view...
Match each item with a statement below.
A. The event generated when a user clicks a control in a GUI program B. An icon that appears beside a list or a section of code and that can be expanded or condensed C. Lies horizontally across the top of the IDE window, and includes submenus that list additional options D. A control that has this can receive keyboard input E. A Form property that gets or sets the button on the form that is clicked when the user presses the Enter key F. The area where you design applications visually G. A keyword in a method header (for example, the keyword private) that dictates which classes can use the method H. Provides lists of controls that can be dragged onto a Form so that you can develop programs visually I. GUI objects that provide an interface for collecting, displaying, and delivering information J. The period during which a program executes
Which of the following statements are true?
a. To override a method, the method must be defined in the subclass using the same signature and compatible return type as in its superclass. b. Overloading a method is to provide more than one method with the same name but with different signatures to distinguish them. c. It is a compile error if two methods differ only in return type in the same class. d. A private method cannot be overridden. If a method defined in a subclass is private in its superclass, the two methods are completely unrelated. e. A static method cannot be overridden. If a static method defined in the superclass is redefined in a subclass, the method defined in the superclass is hidden.