Searching for "he"

Q:

What is pre-emptive and non-preemptive scheduling?

Answer

Preemptive scheduling: The preemptive scheduling is prioritized. The highest priority process should always be the process that is currently utilized.


Non-Preemptive scheduling: When a process enters the state of running, the state of that process is not deleted from the scheduler until it finishes its service time.

Report Error

View answer Workspace Report Error Discuss

Q:

Explain the meaning of mutex.

Answer

Mutex is the short form for ‘Mutual Exclusion object’. A mutex allows multiple threads for sharing the same resource. The resource can be file. A mutex with a unique name is created at the time of starting a program. A mutex must be locked from other threads, when any thread that needs the resource. When the data is no longer used / needed, the mutex is set to unlock.

Report Error

View answer Workspace Report Error Discuss

Q:

Explain the concept of the Distributed systems?

Answer

Distributed systems work in a network. They can share the network resources, communicate with each other.

Report Error

View answer Workspace Report Error Discuss

Q:

A box contains 100 balls, numbered from 1 to 100. If three balls are selected at random and with replacement from the box, what is the probability that the sum of the three numbers on the balls selected from the box will be odd?

A) 1/6 B) 1/3
C) 1/2 D) 1/4
 
Answer & Explanation Answer: C) 1/2

Explanation:

P(odd) = P (even) =12 1(because there are 50 odd and 50 even numbers)

 

Sum or the three numbers can be odd only under the following 4 scenarios:

 

Odd + Odd + Odd = 12*12*1218

 

Odd + Even + Even = 12*12*12=18

 

Even + Odd + Even = 12*12*12=18

 

Even + Even + Odd = 12*12*12 = 18

 

Other combinations of odd and even will give even numbers. 

 

Adding up the 4 scenarios above:

 

1818+1818 = 48 = 12

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

If x is chosen at random from the set {1,2,3,4} and y is to be chosen at random from the set {5,6,7}, what is the probability that xy will be even?

A) 1/2 B) 2/3
C) 3/4 D) 4/3
 
Answer & Explanation Answer: B) 2/3

Explanation:
 

S ={(1,5),(1,6),(1,7),(2,5),(2,6),(2,7),(3,5),(3,6),(3,7),(4,5),(4,6),(4,7)}
Total element n(S)=12

xy will be even when even x or y or both will be even.
Events of x, y being even is E.
E ={(1,6),(2,5),(2,6),(2,7),(3,6),(4,5),(4,6),(4,7)}
n(E) = 8

P(E)=n(E)n(S)=812 = 4/3

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

There are four hotels in a town. If 3 men check into the hotels in a day then what is the probability that each checks into a different hotel?

A) 1/2 B) 3/4
C) 4/7 D) 3/8
 
Answer & Explanation Answer: D) 3/8

Explanation:

Total cases of checking in the hotels = 4 x 4 x 4 = 64 ways.

Cases when 3 men are checking in different hotels = 4×3×2 = 24 ways.

Required probability =24/64  = 3/8

Report Error

View Answer Report Error Discuss

Filed Under: Probability

Q:

What is CPU Scheduler?

Answer

Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them. CPU scheduling decisions may take place when a process: 1.Switches from running to waiting state. 2.Switches from running to ready state. 3.Switches from waiting to ready. 4.Terminates. Scheduling under 1 and 4 is non-preemptive. All other scheduling is preemptive.

Report Error

View answer Workspace Report Error Discuss

Q:

A card is drawn from a pack of 52 cards. The card is drawn at random. What is the probability that it is neither a spade nor a Jack?

A) 9/13 B) 4/13
C) 10/13 D) 8/13
 
Answer & Explanation Answer: A) 9/13

Explanation:
 

There are 13 spade and 3 more jack


Probability of getting spade or a jack:
=13+352=1652=413

 

So probability of getting neither spade nor a jack:
=1−413 = 9/13

Report Error

View Answer Report Error Discuss

Filed Under: Probability