• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

question on concurrency

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic