Question
What is the purpose of a semaphore in synchronization?
Solution
To provide mutual exclusion
A bag contains 7 yellow balls, 5 black balls and 3 red balls. Two balls are drawn simultaneously. Find the probability that both the balls are of same ...
Two cards are drawn from a pack of 52 cards. The probability that 1 is Ace and 1 is Queen is?
The probability that Leah will be accepted into program P is 60% and into program Q is 40%. Leah prefers program 'P' first, then 'Q', and finally 'R'. A...
In a lottery, there are 6 prizes and 30 blanks. A lottery is drawn at random. What is the probability of getting a prize?
"A box contains 54 rubber bands in three colors: Red, Green, and Yellow. The probability of picking a green rubber band is (1/3),...
A bag contains B red balls and 9 purple balls. If two balls are drawn at random, one after the other without replacement, and the...
18 rotten bananas are accidentally mixed with 132 good ones. It is not possible to just look at a banana and tell whether or not it is rotten. One banan...
A bag contains 8 yellow balls, 7 orange balls, and 3 blue balls. Two balls are drawn at random. Find the probability that the two balls are yellow.
If 2 pens are drawn at random what is the probability that none of them is blue?
- A pair of dice is rolled once, what is the probability that the sum of the numbers on top is 5?