• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Question ablut B&S project's BOOK operation.

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1.In the instruction is said that

The User Interface
It must allow the user to book a selected record, updating the database file accordingly.


What's meaning of "book"?It means input into the "owner" field? or other operation?

2.How to realize "Thread safety"?
Synchronizing a hashmap object in the lock and unlock methods is having resolved the problem?
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


What's meaning of "book"?It means input into the "owner" field? or other operation?


Yes, you should allow the user to put an ID in that field, effectively flagging the record/row as booked. Your instructions should explain whether this is numeric or alphanumeric.


2.How to realize "Thread safety"?
Synchronizing a hashmap object in the lock and unlock methods is having resolved the problem?[/QB]



Yes, you are correct.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic