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

  Create the database using three tables

Create the database using three tables: one for student information, one for advisor information, and one for department information.

  Draw context diagram that represent supply ordering system

Draw a context diagram that represents a Supply Ordering System (SOS).

  Identify the potential sale and department store transaction

Evaluate whether the use of a distributed DBMS structure is appropriate and identify the optimization techniques that should be factored in to enhance the operations of the database in your design.

  Create an arff file with the data types

Create an arff file with the following data types, flags, unit_id, names must be nominal and timestamps (ts) must be date

  Define set of relational schemas and identify primary keys

We want to construct a database for a world-wide package delivery company. Define a set of relational schemas and identify primary and foreign keys. Try not to include redundant schemas.

  Explain use of sequential file over database

Explain these situations. When would the database be more beneficial than sequential file? Is it possible for two kinds of permanent storage to be used interchangeably?

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Expanded entity relationship model diagram

Each department has many employees assigned to it, but each employee works for only one department at one of the factories. An employee cannot work at more than one factory at a time.

  Database management systems

Rubric for PowerPoint Presentation Points

  Electronic spreadsheets in data modeling

Explain in detail with supporting illustrations the six stages of the problem solving process and explain when the choice for using electronic spreadsheets is the preferred tool of choice.

  Explain the problems associated with data redundancy

Assignment 5: Logical Design, Part II, Explain the problems associated with data redundancy as it pertains to effectively using information for reporting and analysis.

  Write methods for outlier detection

Exceptions in credit card transactions can aid us fraudulent use of credit card. Suggest two methods for outlier detection.

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