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

  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