Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "question on concurrency" Watch "question on concurrency" New topic

question on concurrency

Ramesh Israni

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

Joined: Dec 28, 2007
Posts: 2271

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

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


SCJP 1.5<br />SCJD 1.6<br />SCBCD in progress...
I agree. Here's the link:
subject: question on concurrency
It's not a secret anymore!