Implement a multiple-reader-single-writer lock given a
compare-and-swap instruction. Readers cannot overtake
waiting writers.
3 blocks are chosen randomly on a chessboard. What is the probability that they are in the same diagonal?
A person X have a certain number of mangoes, he gave 1/2 of total plus one mango to B, now he gave the 1/3 of remaining plus one mango to C, he gave the 1/4 of remaining plus one mango to D. Now he have no mango more, find how many mango was at beginning?
At the entrance to a members club stands a stranger seeking admission. A friend told him that it's easy to get in. You just have to answer a question corrcetly! Answering wrong, however, will result in being shot! To live a little longer, the man waits in a back alley near the entrance for people to go in. After a while a man comes to the entrance. The door warden asks him: "Twelve?" to which he replies "Six!" and goes in. "That's easy." our friend thinks, but he waits a little longer. Another man comes to the door. "Six?" the door warden asks, to which he replies "Three!" and goes in. "That's too good to be true" our friend thinks, and he was right. Because, when asked "Four?", he answered "Two!" and was found dead in the alley. What was the correct answer?
3 men are running in circle man A run with 20m/hr, man B run with 40m/hr, man C run with 50 m/hr , and the radius of cirlce is 200m then at what time they will meet together
There is a grid of 20 squares by 10 squares. How many different rectangles are possible? Note that square is a rectangle.
To move a Safe, two cylindrical steel bars 7 inches in diameter are used as rollers. How far will the safe have moved forward when the rollers have made one revolution?
You have four 9's and you may use any of the (+, -, /, *) as many times as you like. I want to see a mathematical expression which uses the four 9's to = 100 How many such expressions can you make?
Q. Right to information flows from which of the following Articles: (a) Articles 19 & 20 (b) Articles 21 & 22 (c) Articles 19 & 21 (d) Articles 14 & 19
1)PORK/CHOP = C,IF C=2 FIND PORK AND CHOP??? 2)ATOM + BOMB = BINGO.IF A=7 and G= 9, find ATOM BOMB BINGO.
If it is given that: 25 - 2 = 3 100 x 2 = 20 36 / 3 = 2 What is 144 - 3 = ?
A fly is flying between two trains, each travelling towards each other on the same track at 60 km/h. The fly reaches one engine, reverses itself immediately, and flies back to the other engine, repeating the process each time. The fly is flying at 90 km/h. If the fly flies 180 km before the trains meet, how far apart were the trains initially?
100 Gold Coins Five pirates have obtained 100 gold coins and have to divide up the loot. The pirates are all extremely intelligent, treacherous and selfish (especially the captain). The captain always proposes a distribution of the loot. All pirates vote on the proposal, and if half the crew or more go "Aye", the loot is divided as proposed, as no pirate would be willing to take on the captain without superior force on their side. If the captain fails to obtain support of at least half his crew (which includes himself), he faces a mutiny, and all pirates will turn against him and make him walk the plank. The pirates start over again with the next senior pirate as captain. What is the maximum number of coins the captain can keep without risking his life?