• Post Reply Bookmark Topic Watch Topic
  • New Topic

Locking - Confused... @.@

 
RIO YOU
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Locking-UnLocking methods are just confusing for me.

I'm just thinking....


================================================= my scenario is,
If The REMOTE CLIENT reads the DB-File by RMI, it would be based on
READ-ONLY Threads.

OK.. It's Fine.

imagine that If the CLIENT's trying to book-update-delete one record.

At this time, Should the CLIENT re-open the DB-File as READ-WRITE mode?


Any comments helpful for me.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12056
232
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rio,

This sounds like you plan to have one file connection per connected client. Is that right?

Regards, Andrew
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!