Design and programming assignment operating systems

Assignment Help Operating System
Reference no: EM131262592

Design and Programming Assignment Operating Systems

This is an open book assignment and you may use the course materials and peer reviewed sources. However, this excludes the use of any other people and all materials that are not peer reviewed. You must cite all references.

Description

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 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. 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 Blackboard as a ZIP file that extracts to a single level directory for this problem):

- A detailed design document fully describing your 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 Writing link in My Course Content in Blackboard for design elements. You must pay close attention to maintaining a consistent flow in form. The document must be well written and should be proofread for detail and accuracy. Use double spacing throughout the document and the font should be Times Roman or a similar serif typeface. Use citation to provide evidence of your analysis. Citations and references should be in APA format. Use 12 point for the body of the text.

- 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 <optional parameters>.
o Output from a run of your application.

Reference no: EM131262592

Questions Cloud

Identify the most suitable method of transporting : Identify the most suitable method(s) of transporting your product in terms of cost, transit time, reliability, capability, accessibility, and traceability.
Describe the type of quantitative research design selected : Describe the type of quantitative research design selected and why this design was chosen by the author(s), i.e. Descriptive, Correlational, Causal-comparative/quasi-experimental research or Experimental research.
Business example to illustrate what you mean : 1. During an economic recession, discuss how management's or a union's bargaining power might be affected. Give an appropriate business example to illustrate what you mean, support it with at least one reference.
Direct labor time variance-wages payable-work in process : The Assembly Department produced 4,200 units of product during March. Each unit required 2.6 standard direct labor hours. There were 11,420 actual hours used in the Assembly Department during March at an actual rate of $17.4 per hour. The standard di..
Design and programming assignment operating systems : Design and Programming Assignment Operating Systems - Your implementation for problem must only use the semaphore methods to control the concurrency of your solution (IE. acquire and release).
Why is supply chain performance measurement necessary : Why is supply chain performance measurement necessary and important?  -  How does the Balanced Scorecard Approach help firms within the supply chain to establish and meet common goals?
Derive laplace''s equation for polar coordinates : Find the conjugate harmonic function associated with u(r,θ) = ln r. Sketch some constant u and v lines.
Direct labor rate variance-unfavorable direct labor time : Belgian Chocolate Company makes dark chocolate and light chocolate. Both products require cocoa and sugar. The following planning information has been made available: Standard Amount per Case Dark Chocolate Light Chocolate Standard Price per Pound Co..
Discuss new technology and emerging trends : What logistics functions can this third-party logistics supplier provide? How does its mission fit in with the supply chain management philosophy?

Reviews

Write a Review

 

Operating System Questions & Answers

  What new files should create eliminate the data redundancies

what new files should you create to help eliminate the data redundancies found in the file shown in Figure P1.5?

  What is data integrity in terms of databases.

Why is this concept important, and what can you do to make sure integrity is enforced?

  Analyzing inter process communication

Technology and techniques for inter process communication within a DIS have evolved considerably in current years. Please critically analyze the CORBA, DCE, SOAP and SOCKETS

  Organization institutionalizes policies

The answer gives the learner with an understanding of management's role in the development and enforcement of data security policies, standards, practices, precess and guidelines.

  How long does a paged memory reference take

how long does a paged memory reference take - What is the effective memory reference time?

  Operating system suitability assessment plan

Develop a tool that helps companies in assessing the suitability of different operating systems for their businesses. This tool is a table with multiple rows and columns - Operating System Suitability Assessment Plan.

  Write a function isvowel() that test whether char is vowel

Use your function in a program that reads the standard input file and writes to the standard output file, deleting all vowels

  Examination of evidence on original media

The "forensically sound" method is to never conduct any examination on original media. There are practical and legal reasons for not performing examination on suspect's computer,

  Explain "information architectures" concept in detail

At the least, you need to iterate the questions a couple of times for yourself. Write down your answers, then set them aside for a couple of days and come back to them. If you can do this a couple of times, you'll find that your formulation will b..

  Discuss the merits of each file management system

Discuss the merits of each file management system - Methods available for file manipulation and how user-defined permissions are implemented and can be examined.

  How it adds flexibility to the operating system

UNIX treats all devices as files. Explain why this is an innovative feature when it was first introduced and how it adds flexibility to the operating system

  Design and implement demand paging virtual memory simulator

Design and implement a Demand Paging virtual memory simulator! It must be a text based application (NOT a GUI based one). You can use the C/C++ or Java programming language

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