Searching for "c "

Q:

What is a Safe State and what is its use in deadlock avoidance?

Answer

When a process requests an available resource, system must decide if immediate allocation leaves the system in a safe state. System is in safe state if there exists a safe sequence of all processes. Deadlock Avoidance : ensure that a system will never enter an unsafe state.

Report Error

View answer Workspace Report Error Discuss

Q:

What is the difference between Compiler and Interpreter?

Answer

An interpreter reads one instruction at a time and carries out the actions implied by that instruction. It does not perform any translation. But a compiler translates the entire instructions.

Report Error

View answer Workspace Report Error Discuss

Q:

What are deadlock prevention techniques?

Answer

Mutual exclusion


Hold and wait


No preemption


Circular wait

Report Error

View answer Workspace Report Error Discuss

Q:

Two brother X and Y appeared for an exam. The probability of selection of X is 1/7 and that of B is 2/9. Find the probability that both of them are selected.

A) 1/63 B) 1/14
C) 2/63 D) 1/9
 
Answer & Explanation Answer: C) 2/63

Explanation:

Let A be the event that X is selected and B is the event that Y is selected.

P(A) = 1/7,  P(B) = 2/9.

Let C be the event that both are selected.

P(C) = P(A) × P(B) as A and B are independent events: 

       = (1/7) × (2/9)  = 2/63

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

What is process synchronization?

Answer

A situation, where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place, is called race condition. To guard against the race condition we need to ensure that only one process at a time can be manipulating the same data. The technique we use for this is called process synchronization.

Report Error

View answer Workspace Report Error Discuss

Q:

What is the difference between Primary storage and secondary storage?

Answer

Main memory - only large storage media that the CPU can access directly.

Secondary storage - extension of main memory that provides large nonvolatile storage capacity.

Report Error

View answer Workspace Report Error Discuss

Q:

What is the state of the processor, when a process is waiting for some event to occur?

Answer

Waiting state

Report Error

View answer Workspace Report Error Discuss

Q:

A number X is chosen at random from the numbers -3, -2, -1, 0, 1, 2, 3. What is the probability that |X|<2

A) 3/7 B) 3/4
C) 4/5 D) 5/7
 
Answer & Explanation Answer: A) 3/7

Explanation:

X can take 7 values.
To get |X|+2) take X={−1,0,1}

=> P(|X|<2) = Favourable CasesTotal Cases = 3/7

Report Error

View Answer Report Error Discuss

Filed Under: Probability