Implement a program to query and update the text database

Assignment Help Database Management System
Reference no: EM13330864

Implement a program to query and update the text database for a library using a client/server model allowing multiple clients safe access to the database, and using a producer-consumer model to control the inventory of each item.

The project will be graded according the criteria for the final project - see below.

Elaboration of the Client Class:

Multiple instances of a client class should be supported.

Use threads and locks to provide safe access to the database.

Add a field to each record in the database representing the maximum number of that book the library will hold. This number should be given a default value if the field is not present in the text file.

Functions should include:

Returning a book to the library, blocking if the maximum number of that book is reached until a book is borrowed.

Borrowing a book, blocking if the desired book is not in the library until a book is returned.

Allow a client to cancel a request that has been blocked.

Reference no: EM13330864

Questions Cloud

What is the mass of the planet newtonia : On the planet Newtonia, a simple pendulum having a bob with a mass of 1.33kg and a length of 186.2cm takes 1.45s , when released from rest, What is the mass of the planet Newtonia
Analyze requirement for the profession of auditing : Analyze the requirement for the profession of auditing and the integral role that independence assurance plays within the economy and examine the corporate governance of audits including the professional, regulatory, and corporate managerial requir..
Increased business attention to ethical matters : How has government actionin recent years encouraged increased business attention to ethical matters?
What is the magnitude of the impulse applied to golf ball : A golf ball strikes a hard, smooth floor at an angle of 25.8 ° , What is the magnitude of the impulse applied to the golf ball by the floor
Implement a program to query and update the text database : Implement a program to query and update the text database for a library using a client/server model allowing multiple clients safe access to the database, and using a producer-consumer model to control the inventory of each item.
Difference between a homosexual man and astraight man : How do you tell the difference between a homosexual man and astraight man without hearing them speak or seeing them walk. Forexample, if you saw a man sitting on a couch reading a magazine, isthere a way to know his sexual orientation? Please help, s..
Find the mass of the astronaut : In order to study the long-term effects of weightlessness, astronauts in space must be weighed (or at least "massed"). Find the mass of the astronaut
Calculate the centripetal acceleration of the satellite : The diameter of planet mars is 6.794 km and it's mass is 6.4219x10^23 kg. calculate the centripetal acceleration of the satellite
Calculate the increase in internal kinetic energy : A 4.00 x 107 kg battleship originally at rest fires a 1200 kg artillery shell horizontally with a velocity of +400 m/s. Calculate the increase in internal kinetic energy

Reviews

Write a Review

Database Management System Questions & Answers

  Explain why data flow diagrams are developed in a hierarchy

Explain why data flow diagrams are developed in a hierarchy? What are the names of some levels in the hierarchy?

  Craete the database to be fault tolerant

Explain the thought process of DBA as they craete the database to be fault tolerant. What policies would you suggest to get this goal?

  What problems could be caused by not having indexes

What problems could be caused by not having appropriate indexes and what problems could be cause by having too many indexes?

  Explaining unclustered b pus tree index

Suppose you have a table which contains 27,000 data records, and you have unclustered B+ Tree Index on the table.

  Draw the er diagram using industral-style notations

Each department is described by a name, department code, office number, office phone, and college. Both name and code have unique values for each department.

  Develop a complete system

The assignment will be chosen by the individual student with my approval. An ideal assignment will be one which involves at least four entity sets, but not too many since there will be critical time pressure to complete the assignment.

  Create an er diagram using the set of requirements

Create an ER diagram using the set of requirements provided for Oxford City Council's bicycle sharing scheme and identify the minimal set of functional dependencies and all candidate keys for the relation R

  Create data warehouse for electronics store chain

Create a data warehouse for electronics store chain. Chain has 20 stores in 5 cities. Each store has different sections comprising computers, DVDs, TVs, audio, home appliances etc.

  How could those redundancies lead to anomalies

What problem would you encounter if you wanted to produce a listing by city? How would you solve this problem by altering the file structure?

  Design scheme for determining wine bottle which poisoned

Design a scheme for determining exactly which one of the wine bottles was poisoned in just one month's time while expending O(logn) taste testers.

  Database server management

Design an Entity model and construct a set of tables with suitably defined columns to support this scenario and find details of all books stocked in London

  Kinds of joins

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

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