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

  Question 1a process is a program under execution and as it

question 1a process is a program under execution and as it executes it changes state. the state of a process is defined

  Compile the code below and test it

This code is not compiling, it consists of a header file (rational.h) and the code itself (rational.c). Please provide comment (like what the while loop does ...etc, so that the program is more understandable by anyone reading it). The original pr..

  Pros and cons of using embedded uid and pw

Think about an embedded user id and password which provides me access to a client/server environment. Discuss the pros and cons of using an embedded uid and pw?

  What is the working-set size under given reference stream

Given a window size of 6 and assuming the primary memory is initially unloaded, what is the working-set size under the given reference stream after the entire stream has been processed?

  Ext4 file systems on linux vs. ntfs file systems

List what characters are absolutely not allowed for ext4 file systems on Linux vs. NTFS file systems on Windows in a plain text document.

  Describe process management and memory management

Describe the process management and memory management activities performed by the Operating System?

  Create a model round robin scheduler

Create a Model Round Robin Scheduler - Referencing the Round-Robing scheduling algorithm

  Discuss the purpose of operating systems

Discuss the purpose of operating systems and Describe the components that comprise operating systems and the functions of each of these components

  Cpu scheduler objectives 1 understand cpu scheduler 2

objectives ltbrgt1. understand cpu scheduler ltbrgt2. implement an algorithm ltbrgt3. empirical analysis of an

  What file and file-field are read by the finger command

What file and file-field are read by the finger command and When a parent process dies, what happens to any child processes that are still running

  Example for processor scheduling

Give a (specific) example for processor scheduling in which preemption helps improve performance. Now discuss the feasibility of designing a preemptive disk scheduling algorithm for a disk read workload in which each job has the same priority. Do ..

  What do you mean by the protection fault

What do you mean by the protection fault? How the Kernel handles the copy on write bit of a page, when the bit is set?

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