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.
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
|