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

  Design a set of 3nf tables for your database scenario

Draw an ER diagram for your database scenario. Design a set of 3NF tables for your database scenario.

  Explaining software measurement related to software metrics

Is software measurement equivalent to software metrics? What makes them different?

  Design an relational model model

Design an Relational Model (RM) model of a database (DB) that will be useful for each of the chosen enterprises and Implement the 2 enterprise relational DBs using either MySQL or SQLite

  When would creating an index reduce overall database perform

Indexing can affect the performance of a general-purpose database that has roughly equal numbers of fetches and changes. The decision to add an index can improve the performance of a system but can also degrade it.

  How does oracle process query

How does Oracle process this query? That is, what does Explain Plan tell you about how the query is processed - how would you recognize that the results were not correct?

  Define relational database design

List the details of any works of art (including the Artist who created the work) that have more than one copy recorded in the database.

  Writing down sql query

Write down the SQL code in order to carrying out the following requests. Display all the data in each of the four tables. Do not display the foreign key columns.

  How virtual applications and desktops or both will delivered

Regional Gardens Ltd is a company that runs number related gardening enterprises. It has a large display garden that it opens for public inspection a number of times in a year.

  Calculate confidence and support of rule

Assume that 30% of science students are majoring in biology. Would you consider to be novel with respect to rule? Describe. Calculate confidence and support of rule.

  Suggest a learning algorithm for the problem

What is required to defi ne a well-posed learning problem ?

  Create a database using oracle packaged procedure

Create a database using Oracle packaged procedure

  How to make an xml file with markup tags

Create an XML file with markup tags and some sample data to represent a list of invoices. Include the XML tags for two invoices in the list. Also, assume the invoices are created from a database whose tables are shown in the following database re..

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