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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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