Write procedures using counter and sychronisation techniques

Assignment Help Database Management System
Reference no: EM1359624

backpackers hotel has a bathroom with multiple showers so that many people can use it at once. The hotel follows traditional practice by allowing either men or women to use the bathroom, but not both at once. Thus when one or more women are in the bathroom, other women may enter but no men, and vice-versa. A sign on the door of the bathroom with a sliding marker indicates which of the three possible states the bathroom is in:
 Empty
 Women present
 Men present

Write the following procedures: woman_wants_to_enter, man_wants_to_enter, woman_leaves, man_leaves, using counters and sychronisation techniques to ensure that the correct behaviour will occur. Is your solution fair and correct? If so describe how it is fair and correct, otherwise describe the limitations to your solution.

Reference no: EM1359624

Questions Cloud

Design hardware and software driver-byte-wide data transfer : Design the hardware and software driver that will implement a byte-wide data transfer from your processor to a peripheral device.
Determine the expected spot rate : My question is if the US expects to raise prices by 3% within the next year and in Switzerland prices may rise 7% at the same time,
Determine the highest return investment : Determine which of the given three investments offers you the highest rate of return on your $1,000 investment over the next 5-years.
Organizational cultures - impact on decision making : Find a qualitative, a quantitative and a mixed methodology study on any of the 3 mentioned topics above. Share the title of each and share the abstract of each in your own words.
Write procedures using counter and sychronisation techniques : Write the following procedures: woman_wants_to_enter, man_wants_to_enter, woman_leaves, man_leaves, using counters and sychronisation techniques to ensure that the correct behaviour will occur.
Calculate the age of your son : Suppose you plan to start saving for your son's college education. He will begin college when he turns eighteen years old and will need $4,000 at that time and in each of the following three years.
Swot analysis in the healthcare industry : SWOT stands for strengths, weaknesses, opportunities, and threats. Strengths and weaknesses are internal factors. Opportunities and threats are external factors.
Ethical and legal standards for testing : Using information in the APA (2000) and APA (2009) articles on responsibilities and rights of test takers and test users, discuss why it is important to have ethical and legal standards for testing.
Calculate daily expenditure and firm annual savings : XieCorp is analyzing the performance of its cash management. On average, the company holds inventory 65 days, pays its suppliers in 35 days, and collects its receivables in fifteen days.

Reviews

Write a Review

Database Management System Questions & Answers

  Prepare fully attributed data model

Use the results of the transcripts of an interview with IT consultant. Prepare a Fully Attributed Data Model. Add the data attributes for each entity."

  Description of the relationship represented by scatterplot

Produce a scatterplot of Rent vs. Size (square meters of the apartment) for the rental data in rent.

  Study and modify the postgresql source code

Write a Assignment to study and modify the PostgreSQL source code, with a focus on one of the core modules - the buffer manager

  Write select statement that returns three columns

Write a SELECT statement that returns three columns: InvoiceTotal From the Invoices table, 10% 10% of the value of InvoiceTotal.

  Create query that spans both tables

Create a query that spans both tables. Eliminate redundant fields. Modify the Query to select only those Customers that had service dates in October and November 2006.

  Relations of airline flight information

The relations given below keep track of airline flight information:Flights(flno: integer, from: string, to: string, distance:integer, departs: time, arrives: time, price: real)Aircraft(aid: integer, aflame: string, cruisingrange: integer)

  Relational algebra expressions for names of salespeople

Illustrate relational algebra expressions for names of all salespeople, names of all salespeople having ORDER row and names of salespeople not having ORDER row.

  Kinds of joins

It is not uncommon to have to access the data which reside in different tables, especially when formulating a report.

  Draw an entity relationship diagram for the system

Draw an Entity Relationship diagram for the system and Identify the table design for the database displaying all the fields/attributes. Ensure that all tables are in 3NF. You also need to identify the primary keys and foreign keys, where applicable..

  Write an sql query

Write an SQL query to get the author of the book "The Alchemist"

  An active database in pl-sql

Did the corresponding lines for invoices 1001 and 1008 in table LINE get deleted automatically? Can you explain why?

  Evaluate maximum rate at which data can be read from disk

What is the maximum rate at which data can be read from disk, assuming that we can only read data from one surface at a time? What is the average rotational latency?

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