aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes question on concurrency Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "question on concurrency" Watch "question on concurrency" New topic
Author

question on concurrency

Ramesh Israni
Greenhorn

Joined: May 08, 2007
Posts: 2
In the local DB mode, should I worry about the user running two instances of the application. Which will mean that I will need some kind of a OS level locking.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2247

Howdy, partner.

Originally posted by Ramesh Israni:
In the local DB mode, should I worry about the user running two instances of the application.


Hum... this one is sort of hard to answer. But, I would say yes. But, I think you can impose this kind of restriction (only one window of the application client can be opened at a time), but I don't know if you would loose points because of that.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Gilles Marceau
Ranch Hand

Joined: Feb 17, 2007
Posts: 78
Hi,

you should have a look at the "Locking" chapter of your assignment. There
may be some clue about your question. In my assignement, there is the
following sentence :

You may assume that at any moment, at most one program is accessing the
database file; therefore your locking system only needs to be concerned with
multiple concurrent clients of your server.

For me, it means that there will be only one software accessing the
database file at any moment. However, this software could be a GUI client,
or a server with several clients connected (concurrency issues in that
case).

Gilles


SCJP 1.5<br />SCJD 1.6<br />SCBCD in progress...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: question on concurrency
 
Similar Threads
Posting to bump up my count...
The x900 effect ?
Cant use object from another class
WA #1.....word association
Text box value is not being completely filled with request attribute