For this problem you must use Java’s semaphore class. Your implementation for this
problem must only use the semaphore methods to control the concurrency of your solution
(IE. acquire and release).
Consider a small take-out food place called Burrito Brothers. This very popular
establishment offers a VERY-TASTY burrito (assume the burrito ingredients are infinite.)
There are three servers that own a private beef area, a cheese area, and a tortilla area (IE.
Each server has their own ingredients in an infinite supply). Additionally there are three
shared counter locations, a shared cash register and a shared waiting area that can
accommodate up to 15 customers. By law the shop has a maximum customer capacity of
A customer cannot enter the shop if it is filled to capacity. If the there is room a customer
will gain access to the shop. Each customer will enter the shop with an order of one to 20
burritos. As soon as a server is free, the customer that has the shortest order is served
A server is either servicing a customer or waiting. Each server will make (at most) three
burritos at time for a given customer. Once a server has obtained all ingredients, a burrito
can be made. When a customer’s entire order is finished, the customer pays a cashier and
leaves the shop. Since there is only one cash register, only one patron may pay at a time.
However, in the event that a customer’s entire order has not been filled by the server at the
completion of the current counter visit the customer must reenter the waiting area. The
waiting area is organized by the shortest order next.
Implement a solution to this problem as a Java application using the Java semaphore class
for synchronization. Do not turn in you final application as a package or jar. Your zip file
must expand into a single directory and your application must compile at the command
prompt using javac *.java. Output must include the arrival of each customer and each state
transition: leaving full shop, entering shop with an order of m burritos, customer standing,
getting service from server n, paying, and leaving. Each customer is represented by a
corresponding thread and each server in your implementation is also represented by a unique Java thread. All customers and servers exist within a single application.
The finished assignment must include the following (submitted to WebCT as a ZIP file that
extracts to a single level directory for this problem and does not include your files as a
package or jar):
A detailed design document fully describing your work The Java Burrito Brothers Implementation
o The Java Source Code
o Class files
o The system must compile using the command: javac *.java. The system
must run using the command: java Burrito.
o Output from a run of your application.
Looking to make some money?
- Set your budget and the time frame
- Outline your proposal
- Get paid for your work
Bids on this Project
Experience of working with MVC architecture. Designing, coding and debugging applications in Core Java/J2EE & Python. Knowledge web services and basic Linux. Experience of working with HTTP,HTTPS,SSL,SOAP protocol. Experience of working with XML. Knowlede of DataBase(Oracle and SQL Server). Exposure to Apche Axix2, Apache Maven and Apache Ant.
Architecture, High level and low level design, refactoring, performance tuning, code reviews, caching infrastructure, server sizing,
Years of work experience and exposure to variety of technologies ignited ‘Blaze-core’. As an organization it enhances the usability of newly availed devices with advances of growing technologies & trends. We cater our customers with services for mobile application developments (iPhone, iPad, Android phones & tablets, Blackberry phones & tablets, Windows phones/J2ME, etc.), mobile websites, web/mobile/graphics designing, DotNet, PHP, Product development & support, SEO service, etc. Our products take their shape with best possible solution to the problem assuring quality, timeliness and customer delight. We hope to serve you, serve you better..for life.
Le Perreux Sur Marne, France
I am an excellent Android Developer and am looking for an opportunity to work. I have a great academic background in Android and my experience compliments my studies. Throughout my career I have been working as a Android Developer and as a J2EE Programmer. I also have experience working with Java and JSP. In addition to this I have also worked as a Mobile phone Developer. I look forward to working on your projects.
I have 11+ years of experience in Java,J2ME, C++, PHP, .NET. My aim is to develop softwares with high quality, which are easy to maintain. I have worked in banking domain, medical software domain. I have a software product for Ayurvedic Doctors
Chattanooga, United States
I have a bachelors in computer engineering from Carnegie Mellon University. My career spans 20 years, focusing mostly on backend processes utilizing UNIX, Java, C, PHP, SQL, and NoSQL. This includes such activities as multi-processing, JMS management, database interaction, communications protocols, and web server and application server management. I also have very good writing skills and do technical writing on many technical subjects.
I would like to obtain a job with long term prospects, preferably in the IT (Information Technology) enabled organization. Also seeking a position where I can continue to grow and be a part of a team that will utilize my recent education.
New Delhi, India
I am a kickass Java developer. I get stuff done. No overheads, no red-tape
Hi..I am Perfect developer who have command over all the technologies like Mobile technologies,web technologies,Server administration & maintainance,project management