Design portion of the assignment

Assignment Help Operating System
Reference no: EM131258631

Design and Programming Assignment

Operating Systems

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.Methodology and Design Guidelines Introduction
This document describes a sample of the expected outcomes for methodology and design assignments. You must include your name and a description within each deliverable.

The written work is as important as the coding sections and must be handled appropriately. In the following sections of this document, a discussion on the expectations of each deliverable is presented.

Your documentation must clearly and concisely depict the solution to the assigned problem. This would include a discussion of why your solution incorporated certain features and functions. Each problem has particular issues that require a combination of discussion and implementation to solve.

Methodology

The objective of the methodology is to discuss the approach that was used to implement a solution to a given problem. In this deliverable it is necessary to use prose not just simple narratives. Your work should establish any assumptions for the assignment and explain your direction. In this section you should discuss the details of your study.

In essence, a methodology covers the steps taken to produce the resulting design document. This portion of the assignment provides the background on the solution.

Design

The design portion of the assignment must provide a detailed discussion of the components used in the system. Information contained in the design document is explicitly detailed. Once again, this document must contain sufficient detail such that a programmer can implement your design, but does not include the actual code that resulted from your design. It is necessary to include a title page and a table of contents with your design.

The following outline is potential subject matter that may be included in your design document.

Scope/Overview

The scope/overview should have introduced the problem and the design. Information contained in this section should give an overview of what is to follow, as well as stating any limitations, etc.

Data Design

In this section, the design should have discussed each of the data items that are used in the system.

Architectural Design

This section will discuss, in detail, each of the system components.

Class and Object Design/Modules

This section provides the details of the classes and objects used in the modules that were designed for the system. It is not acceptable to extract portions of the actual code and include them in this section.

Interface Design

Include any human-computer interaction, external interfaces, or internal interfaces in this section.

Test Provisions

This section would include your testing and verification designs.

Verified Expert

This assignment deals with the multithreading concept and the concurrency issue. It describes the use of blocking queue and the semaphore.

Reference no: EM131258631

Questions Cloud

How does the consumer behavior : Which consumer behavior concept/concepts from the textbook (Solomon) can be used to explain Mr. Friend's consumption pattern in various categories described. How does the consumer behavior (Solomon) textbook explain Mr. Friends' parents effect on ..
What are the constraints on making decisions : How does this supply chain differ from that in a manufacturing firm?  -  What are the constraints on making decisions based on economics alone at Arnold Palmer Hospital?
Market for gasoline and the government : If there is a consumer surplus in a market for gasoline and the government sets a price ceiling below the market equilibrium price, what will happen to the quantity of gasoline supplied in the short-run, the number of gasoline stations in the long..
Calculate the fraction of alachlor that will be adsorbed : Calculate the fraction of alachlor that will be adsorbed to a flooded soil and the fraction that will be dissolved in the soil water given that the soil has an organic carbon content of 1%
Design portion of the assignment : Design and Programming Assignment - The design portion of the assignment must provide a detailed discussion of the components used in the system. Information contained in the design document is explicitly detailed.
Popular in oklahoma or in california : What would be the difference if the US, Canada, and Mexico re-negotiated NAFTA and formed an Economic Union? Do you think the new Economic Union would be more politically popular in Oklahoma or in California? Explain.
Difference between unique event risk and super event risk : If the probability of a "super-event" increases, does the "unique-event" risk increase or decrease in importance? Why?
Calculate the fraction of total atrazine : The bulk density of the soil is 1.25 g/cm3; this means that each cubic centimeter of soil (soil plus water) contains 1.25 g of soil particles. The porosity of the soil is 0.4.
Government try to control social costs : How does the government try to control social costs? What are the problems of the government trying to do so?

Reviews

len1258631

10/27/2016 3:39:39 AM

It is important to use citations and references within written documents. However, the work of others is used to give relevance and significance to your analysis, problems, and potential solutions. Quotations are rarely necessary and do not provide value to your views of the subject matter. This document was presented to help guide and improve your written expression. Your work should present a well thought and planned process that provides a definitive direction and focus.

len1258631

10/27/2016 3:39:29 AM

Java code must compile and run from the command line without modification. the folder should contain the following files given in the attachment clearly. there should also be a written document which means: Written expression is a necessary element of graduate study. Writing provides the vehicle for dissemination of critical thinking and problem solving. Therefore it is important that each student represent their individual thoughts and solutions in their work. Written documents must establish a flow of information that leads to a focus. This rule applies to essay questions, design documents, and research reports. The author must provide a comprehensive and concise document that provides the following: . An introduction that explains to the audience: what the work will tell the reader. . A body of work that: provides the exact focus and detail of the subject matter. . Conclusions and summary that: explain the writer''s view of the work and what was covered in the document.

Write a Review

Operating System Questions & Answers

  What is the maximum sustainable net data rate

When a 1024-bytes message is sent with AAL 3 / 4, what is the efficiency achieved? In other words, what fraction of the bits transmitted are useful data bits? Repeat for AAL 5.

  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?

  When a customer buys an item from the store

When a customer buys an item (or several) from the store, several changes to database tables will occur. Explain what those might be.

  Give three technical merits of unix

Give three technical merits of UNIX b) Differentiate between "clustered systems" and "real-time systems". c) Describe the purpose of using "trust relationship"

  Physical separation for security in a computing environment

Give an example of the use of physical separation for security in a computing environment. Give an example of an object whose security level may change during execution

  Create an introductory section on define risk

Question 1: Create an introductory section where you clearly DEFINE RISK. Question 2: Research and Pick ONE organization that can you conduct a risk assessment on.

  Question about network design

Sterling Corporation wishes you to create a network infrastructure for them. They have 5-divisions with many hundred users at each division across the US.

  Identify the costs associated with security requirement

A year after your 1st visit to credit union the manager calls you once again. His business is experiencing tremendous growth and requires to either open another branch office.

  Compare and contrast at least two operating systems

Compare and contrast at least two (2) operating systems that are available today for use on personal computers and / or mobile devices. If you were considering the purchase of a new computing device (i.e., desktop, laptop, smartphone, or tablet)

  Show the contents of a single environment variable

CIS 240 - What command would you use to remove job number 5 from your default print queue and what is the absolute pathname of the file which defines aliases available to ALL users?

  Provide a flowchart and pseudocode to accompany exercise

You should display these output values whenever tile user locates a different record, or updates a record. I-lint: Create a sub procedure and call that procedure from the navigation menu items.

  Identify properties of communication channel

Write the send and receive primitives for stated processes. Identify at least three properties of communication channel or link in this scheme

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