Question

In: Computer Science

Answer the following questions about computer operating systems: 1. Which of the following conditions must exist...

Answer the following questions about computer operating systems:

1.

Which of the following conditions must exist for deadlock to occur?

Group of answer choices

All of these.

No preemption

Circular wait

Hold and wait

Mutual exclusion

2.

Which of the following is not a method for dealing with deadlock?

Group of answer choices

deadlock prevention

deadlock deletion

deadlock detection and recovery

deadlock avoidance

3.

A state where deadlock might occur is known as a(n) ________________.

Group of answer choices

safe state

dead state

unsafe state

critical state

4.

A resource allocation graph can indicate if deadlock might occur if there is a _______________ in the graph.

Group of answer choices

bear

cycle

detached subgraph

petri net

Solutions

Expert Solution

(1) All of these.

It is the situation in which set of processes get blocked as each of the process holds resource & waits for the other resource held by other process. Given all the optons are conditions for it to occur.

Mutual Exclusion - More then one of resources are non-shareable i.e only 1 process is able to use t particular time.

Hold and wait - One process hold the resource & waits for other resource.

NO-preemption - If one process acquires the resource it cannot ba taken from it.

Circular wait - In a circular way processes wait for the other one.

(2) Deadlock deletion is the answer for it.

For dealing with deadlock there exists

Deadlock avoidance or prevention - This way avoid the system for letting it go in the deadlock.

Deadlock detection and recovery - After deadlock occurs, preemption is done for handling after it occurs.

Ignoring problem altogether - When deadlock occurs & it appears to be rare, it is allowed to happen then system is re-booted.

(3) Answer of this is unsafe state

In a safe state the system is able to allocate the resources that processess request.

In unsafe state the system is not able to fulfill the request made by the processes, which gives possibility to deadlock.

In critical state, shared resources are accesible.

In dead state process is terminated or stoppes.

(4) Answer to this is cycle.

Resource allocation graph pictorially represents a system's state. If one process waits for the other and this flow enters a cyclic one then it causes deadlock. Gien other options are not in context with deadlock.


Related Solutions

Answer the following questions about computer operating systems: Consider the following set of processes, with the...
Answer the following questions about computer operating systems: Consider the following set of processes, with the length of the CPU-burst time given in milliseconds: Process Burst Time Priority P1 10 3 P2 1 1 P3 2 3 P4 1 4 P5 5 2 The processes are assumed to have arrived in the order P1, P2, P3, P4, P5, all at time 0 Draw four Gantt charts illustrating the execution of these processes using FCFS, SJF, nonpreemptive priority (lower number implies...
Economic systems: 1.         Identify the questions all economic systems must answer                      &nb
Economic systems: 1.         Identify the questions all economic systems must answer                                                                                                                                                                                         2.         Compare and contrast including strengths and weaknesses. Give an example of each.             Go to www.cia.gov. , the World Fact Book: Look up the North Korean, Swedish and the U.S. economy. TYPE→ ANALYSIS↓ MARKET/ CAPITALISM MIXED COMMAND/ COMMUNISM DESCRIPTION [Include ownership and decision making when appropriate.] Private ownership. Supply and Demand decides. Blend of private and government. Blend of supply & demand with government intervention. Government...
What are the four conditions that must exist for the free enterprise system to exist? What...
What are the four conditions that must exist for the free enterprise system to exist? What are the implications of the relationship between supply and demand?
1. In theory, what conditions must exist for a company to build a new factory? That...
1. In theory, what conditions must exist for a company to build a new factory? That is, what hurdles must a firm overcome in order to build a factory?   2. What are the five areas, or categories, of Total Spending? How large is each area, in terms of total dollars spent, and in percentage terms--- as a percent of Total Spending?   3. What are the four events that may cause a recession, in theory? What IS a recession, exactly? Are...
1. Think of some markets in which competitive conditions exist; then think of some in which...
1. Think of some markets in which competitive conditions exist; then think of some in which noncompetitive conditions exist. Are equilibrium prices established in both? Explain. 2. What are some examples of public goods that would not be produced unless governments decided to demand them?
plese answer all 7 multipple choice questions 1. Which of the following must occur to sustain...
plese answer all 7 multipple choice questions 1. Which of the following must occur to sustain economic growth in the long run? A) technological progress B) capital accumulation C) a higher saving rate D) all of the above 2. Constant returns to scale implies that if N and K both increase by 3% that A) Output (Y) will increase by 3%. B) Y/N will increase by 3%. C) Y/N will increase by less than 3%. D) the capital-labor ratio will...
What are the conditions that must exist for causal relationship? Use examples to discuss.
What are the conditions that must exist for causal relationship? Use examples to discuss.
could you please answer these questions? 1. Which of the following is correct about why bacteria...
could you please answer these questions? 1. Which of the following is correct about why bacteria colony are blue verses white following ligations of PCR product into pGEM-T Easy plasmid and transformation? A. White colonies have no PCR insert in the plasmid and a functional B-galactosidase enzyme, while blue colonies have a non-functional B-galactosidase enzyme with a PCR insert. B. White colonies have a PCR insert in the plasmid and a non-functional B-galactosidase enzyme, while blue colonies have a functional...
1. Answer the following questions regarding financial forecasting: a. Which items comprise operating current assets? Why...
1. Answer the following questions regarding financial forecasting: a. Which items comprise operating current assets? Why is it reasonable to assume that they grow proportionally to sales or COGS? Which ones are proportional to sales and which ones are proportional to COGS? Explain b. What are some reasons that net PP&E might grow proportionally to sales, and what are some reasons that it might not? c. What are spontaneous liabilities and why is it reasonable to assume they grow at...
Business Intelligence Systems.   answer the following questions regarding Business Intelligence Systems. 1--What is the purpose of...
Business Intelligence Systems.   answer the following questions regarding Business Intelligence Systems. 1--What is the purpose of a Business Intelligence system? 2--What is/are the goal/s of Business Intelligence systems? 3--What are the primary activities of the Business Intelligence system? 4--What are the data sources of a Business Intelligence system? 5--What are the outputs of a Business Intelligence system?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT