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

  Method to change column name

Hhow can you change column name or what is a different way to write statement in SQL so it displays the amount column as money.

  Explaining content of document in natural language

Explain the content of this document in natural language;Design the graph representation of document;

  Criteria selecting a life-cycle model for the project

What criteria would you use in selecting a life-cycle model for the project?

  What do you mean by data base scheme

Database Questions:  What do you mean by data base scheme?  What do you mean by cardinality ratio?   What do you mean by degree of relation?

  Computing functional dependencies

Compute the functional dependencies which exist in following table. After determining the functional dependencies, transform this table to an equivalent collection of the tables which are in third normal form.

  Analyzing hard-to-obtain data from two separate databases

You are interested in analyzing some hard-to-obtain data from two separate databases. Each database contains n numerical values.

  Explaining uses for views

Views are integral part of virtual private databases, yet views are utilized for many other reasons. Find out many other uses for views.

  Create state transition diagram to describes student states

Create a state transition diagram that describes typical student states and how they change based on specific actions and events.

  Create structurally sound relational database schema

Create a structurally sound relational database schema showing the minimum number of fields, tables, and relationships between the tables.

  Implement a new learning management system

Its a lead a project that will implement a new learning management system for your university. You have two key tasks: Task 1: Investigate learning management software packages that are available through application service providers.

  Write names-e-mail addresses for all customers from table

Show all the data in each of the four tables. Do not show foreign key columns. Write names and e-mail addresses for all customers who have had a stove repair that cost more than $50.

  Write sql queries for the books database

Write SQL queries for the books database that perform each of the following tasks: Select all authors from the Authors table with the columns in the order lastName, firstName and authorID.

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