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

  Productivity across an organization

Explain how does an company weigh the require to share data to the maximum extent to fully utilize this resource for productivity across an organization.

  Compute average seek time and rotational latency

Seek time 1 ms for every 100 tracks traversed. Initial track position is 0. Compute average seek time & rotational latency.

  Management information systems

Analyze and apply the content from a minimum of 3-recent articles about a topic of interest covered in the module.

  Q1 - technical essay describe and critically evaluate the

q1 - technical essay describe and critically evaluate the similarities between the windows and unix operating systems

  Assume a gpu architecture that contains 10 simd

Assume a GPU architecture that contains 10 SIMD processors. Each SIMD instruction has a width of 32 and each SIMD processor contains 8 lanes for single-precision arithmetic and load/store instructions, meaning that each non- diverged SIMD instruct..

  Question about security policy

ABC Corporation is a small but growing manufacturing corporation with revenues of approximately $25 million. Until now, the corporation has had a single headquarters and production facility in a Midwestern city,

  Time slot interchange switch

In a time slot interchange switch, eight input lines are scanned in sequence to build up an input frame with eight slots.

  Why do you think that embedded systems are so popular

Why do you think that embedded systems are so popular? Is it because of how reliable they are? Are they also secure

  Socket programming in unix using c programming

Identify the values of pidat lines A, B, C, and D and write an echo server using socket programming in UNIX using C programming.

  Explain the basic need for and concepts of file

Explain the basic need for and concepts of file / folder permissions and business unit resource segregation in organizations so the company leaders will understand the importance of each.

  Protected information for both coppa and cipa

The Children's Online Privacy Protection Act (COPPA) and the Children's Internet Protection Act (CIPA) are both intended to provide protections for children accessing the Internet. However, they both have had some opposition. Question 1: Describe ..

  Compare and contrast all three systems

In about a page compare and contrast all three systems. Illustrate your discussion by using the system files /etc/anacron and /etc/crontab and by constructing equivalent systemd service and timer files.

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