In a barber shop there are 2 doors. customer come in 1 door, leave in other. minimum # of chairs. barber spend his life in cutting. always barber can cut 1 customer. few chairs in the shop. if barber busy customer waits, if chairs full, customer leave. if no customer, barber sleeps. treat barber and customer as 2 threads. you can use Semaphore class with arrive and depart and count as parameter.
2085Post New NCR Java Related AllOther Interview Questions
What is set operator oracle?
How the e.coli survives?
What is use of html?
what single discount is to2 successive discount of 10%& 15%
What all performance improvement techniques used in crystal reports? (Particularly cr xi)?
What is dos copy command?
What is S/MIME ?
Which spark library allows reliable file sharing at memory speed across different cluster frameworks?
How does a flocking-based steering system work? What are the components of a flocking-based steering system, and how are they combined? When does flocking-based steering break down or produce undesirable results? Are there any performance implications of the standard flocking model as described by Craig Reynolds, and if so, what are some ways to address them?
A disc is spinning on a spindle and you don't know the direction in which way the disc is spinning. You are provided with a set of pins.How will you use the pins to describe in which way the disc is spinning?
How does stomatal conductance increase in an elevated carbon dioxide environment?
What is the use of open program / file command?
Explain the function of trau?
Can default property value be restored through CSS? If yes, how?
HOW MANY UNITS ARE CONSUMED DURING 1 HR BY 1.5 TON A/C