Consider a small take-out food restaurant called burrito

Assignment Help Operating System
Reference no: EM13347337

Consider a small take-out food restaurant called Burrito Brothers. This very popular establishment offers a VERY-TASTY burrito. 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 15.

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 next 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.

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.

A detailed design document fully describing work. This must be a clear and concise document that rigorously addresses the decisions and design elements that support your solution to this concurrency and synchronization problem. See the Methodology, Design, and design elements. Use citation to provide evidence of your analysis. Citations and references should be in APA format.

  • The Java Burrito Brothers Implementation
  • The Java Source Code
  • Class files
  • The system must compile using the command: javac *.java. The system must run using the command: java Burrito <optional parameters>.
  • Output from a run of your application.

Reference no: EM13347337

Questions Cloud

Assignment-1assume that you are audit senior in an : assignment-1assume that you are audit senior in an accounting firm. your firm has recently won an audit for a company
Complete your assigned readings before you complete the : complete your assigned readings before you complete the assessment.prepare a paper discussing the case and
1 give a complete description in words of the surface x - : 1. give a complete description in words of the surface x - 12 y2 4z - 62 16.2. a build an equation for a hyperboloid
Problema why is measurement in the context of accounting so : problema. why is measurement in the context of accounting so important?b. why has measurement become such a
Consider a small take-out food restaurant called burrito : consider a small take-out food restaurant called burrito brothers. this very popular establishment offers a very-tasty
Part a illustrate why the payment to the taxpayer in fct v : part a illustrate why the payment to the taxpayer in fct v dixon 1952 86 clr 540 was assessable income but the payment
Read the fact situation below and complete the tasks in : read the fact situation below and complete the tasks in part a and part b. liam nisha saul and jing are first year
1 product knowledge ie local festivals for the month : 1. product knowledge i.e. local festivals for the month featured restaurants special promotions and packages updates
Show what are likely to be variable costs for an airline : show what are likely to be variable costs for an airline such as southwest air. also what are likely to be the fixed

Reviews

Write a Review

Operating System Questions & Answers

  Wireless internet security

Millions of American homes are prepared with wireless networks. Suppose if the network is not made secure, any nearby computer with a wireless card can use network.

  Supporting multiple incoming requests via threads

The email database server is created to accept multiple incoming requests via a socket in order to locate a specific message and return it to the customer email browser

  Requirement for routers to support ipv4 and 6 protocol stack

The answer describes the requirement for routers to support both IPv4 and IPv6 protocol stacks and describes the several types of connections a dual stack router can support, and why such connections are necessary.

  Develop skills in systems analysis and skills in modeling

The assignment aims to develop skills in systems analysis and skills in modeling information systems. This assignment is worth 30% of the total assessment. (This is an individual assignment; please complete your work independently.)7002ICT Syst..

  Discussion about wireless networking technologies

Your corporation has just occupied an old historic building in which fifteen workers will work. Due to historic building codes, the corporation is not permitted to run cables inside walls or ceilings.

  Page table entries are needed for two-level paging

Assume that word 0 is part of a hole and that the highest word in memory contains valid tries are needed in the page table if traditional(one-level) paging is used? how many page table entries are needed for two-level paging, with 10 bits in ea..

  Explain limitations of ray tracing

There are many ways to render an object and the selection depends on the use the work will be put to

  What is life cycle costing

What is Life Cycle Costing. Describe briefly the methodology for Life Cycle Costing. What are the criteria to consider when a procurement officer is faced with the decision of procuring a used equipment instead of a new one.

  What is a thread

What types of problems lend themselves to Processes? Is one better than the other? Why or Why Not.

  Focuses on software development process and life cycle model

Discuss how would you address this certification issue with your hypothetical firm for your system that you are trying to certify at the top secret level?

  Networking based question

Determine some of the factors other then the network itself that can cause the network to seem slow?

  Procedure that adds 2 words together

Create a small procedure that adds two words together and stores the results in CX and DX. Call the procedure from a program that loads the words to be added together in registers BX and AX

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd