This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 2265
    
    3

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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question on concurrency