ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Aptitude Questions  >>  Puzzles
 
 


 

 
 English interview questions  English Interview Questions
 General Aptitude interview questions  General Aptitude Interview Questions
 Puzzles interview questions  Puzzles Interview Questions
Question
Implement a multiple-reader-single-writer lock given a 
compare-and-swap instruction. Readers cannot overtake 
waiting writers.
 Question Submitted By :: Raj
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Implement a multiple-reader-single-writer lock given a compare-and-swap instruction. Readers cannot overtake waiting writers.
Answer
# 1
Semaphores
 
Is This Answer Correct ?    2 Yes 1 No
Raj
 

 
 
 
Other Puzzles Interview Questions
 
  Question Asked @ Answers
 
Somebody marked the six faces of a die with the numbers 1, 2 and 3 - each number twice. The die was put on a table. Four people - Abu, Babu, Calu and Dabu - sat around the table so that each one was able to see only three sides of the die at a glance. ? Abu sees the number 1 and two even numbers. ? Babu and Calu can see three different numbers each. ? Dabu sees number 2 twice and he can't remember the third number. What number is face down on the table?  1
Find the smallest number such that if its rightmost digit is placed at its left end, the new number so formed is precisely 50% larger than the original number. CTS2
Everyday in his business a merchant had to weigh amounts from 1 kg to 121 kgs, to the nearest kg. What are the minimum number of different weights required and how heavy should they be?  2
A cow is standing 5 feet from the middle of the bridge .A train is at a distance of 2 times length of the bridge from direction in which cow is nearer to end of the bridge is coming at a speed of 90 miles/hour.If cow moves towards train it will be saved by 1 foot.If cow moves away from train it will be hit by three inches of cow (i)Find length of bridge (ii)Find cows speed Infosys1
There is a perfect sphere of diameter 40 cms. resting up against a perfectly straight wall and a perfectly straight floor i.e. the wall and the floor make a perfect right angle. Can a perfect sphere of diameter 7 cms. pass through the space between the big sphere, the wall and the floor? Support your answer with valid arguments. Don't submit just "Yes" or "No".  3
At what time after 4.00 p.m. is the minutes hand of a clock exactly aligned with the hour hand? HP5
Submit Answer Users Answer (48) BrainVista Answer Puzzle A Friend Add to Favourite Back to Search Result Hello sajeesh murali ? my Answers ? my Favourites ? Modify Personal Info ? Subscribe ? Logout ? Jigsaw Puzzle ? Join the Dots ? Marbles Game ? Balls Game ? Towers of Hanoi ? Think Number ? Find A Day Brain Teaser No Three Gold (G) coins, three Silver (S) coins and three Copper (C) coins are arranged in a single row as follow: G S C G S C G S C ? Only 2 adjacent unlike coins can be moved at any one time. ? The moved coins must be in contact with at least one other coin in line. i.e. no pair of coins is to be moved and placed away from the remaining ones. ? No coin pairs can be reversed i.e. a S-C combination must remain in that order in its new positionwhen it is moved. What is the minimum number of moves required to get all the coins in following order? C C C S S S G G G Show all moves.  1
Pinto says, "The horse is not Black." Sandy says, "The horse is either Brown or Grey." Andy says, "The horse is Brown." At least one is telling truth and at least one is lying. Can you tell the color of the horse?  2
? A is the father of two children - B and D who are of different sexes. ? C is B's spouse. ? E is the same sex as D. ? B and C have the two children - F who is the same sex as B and G who is the same sex as C. ? E's mother, H who is married to L, is the sister of D's mother, M. ? E and E's spouse, I have two children - J and K who are the same sex as I. Note that no persons have married more than once. Also, there are more number of females than males. Can you tell how many females are there?  3
Sam and Mala have a conversation. ? Sam says I am certainly not over 40 ? Mala says I am 38 and you are atleast 5 years older than me ? Now Sam says you are atleast 39 All the statements by the two are false. How old are they really?  1
Consider a state lottery where you get to choose 8 numbers from 1 to 80, no repetition allowed. The Lottery Commission chooses 11 from those 80 numbers, again no repetition. You win the lottery if at least 7 of your numbers are there in the 11 chosen by the Lottery Commission. What is the probability of winning the lottery?  1
On the shelf you have 10 identical bottles of identical pills (let?s say there?s a hundred pills in each bottle). However, one of those 10 bottles contains cheap knockoff pills. The only way to differentiate fake pills from real pills is the weight - while real pills weigh 1 g each, the knockoff pills are only 0.9 g. You have one scale that shows the exact weight (down to the mg) of whatever is weighed. How can you tell which bottle contains fake pills with just 1 weighing? TCS5
Five students - Akash, Chintan, Jignesh, Mukund and Venky - appeared for an exam. There were total five questions - two multiple choice (a, b or c) and three true/false questions. They answered five questions each and answered as follow. I II III IV V -------------------------------------------------- Chintan c b True True False Akash c c True True True Jignesh a c False True True Mukund b a True True False Venky b b True False True -------------------------------------------------- Also, no two students got the same number of correct answers. Can you tell which are the correct answers? What are their individual score?  1
Four persons A, B, C and D are playing cards.Each person has one card, laid down on the table below him, which has two different colours on either side. The colours visible on the table are Red, Green, Red and Blue. They see the color on the reverse side and give the following Infosys4
Mrs. Watsherface had a garage sale. A custmer named Gina bought an old lamp and a rug. She paid a total of $5.25 for everything. The rug cost 25 cents more than the lamp. How much did each cost?  1
Two people enter a race in whick you run to a point and back. Person A runs 20 mph to and from the point. Person B runs to the point going 10 mph and 30 mph going back. Who came in first?  2
The secret agent X emailed some code to his head office. They are "RADAR, LEVEL, ROTOR, REDIVIDER, MOTOR". But four of these five words have something in common and one is fake. Can you tell which one is fake? Ignore the fact that four of the code-words are of the same length.  2
Assume for a moment that the earth is a perfectly uniform sphere of radius 6400 km. Suppose a thread equal to the length of the circumference of the earth was placed along the equator, and drawn to a tight fit. Now suppose that the length of the thread is increased by 12 cm, and that it is pulled away uniformly in all directions. By how many cm. will the thread be separated from the earth's surface?  3
At a recent painting competition,Jonny's rendition of a constable was not last.priya only just managed to avoid last place and came third.the lady who paintd a monkey was very successfull and took first place>Mary beat the lady who painted the lady the temple and the lady who painted the flower beat saching.can you determine who painted what and who won QA2
A polygon has 1325 diagonals. How many vertices does it have?  1
 
For more Puzzles Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com