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.
...ops!<br>-----------------<br>
SCJD<br>
SCWCD 1.4<br>
SCJP 1.4
...ops!<br>-----------------<br>
SCJD<br>
SCWCD 1.4<br>
SCJP 1.4
-------------
Chris
christian combarel wrote:Hi !
It's not a stupid question !
Programs that access the database are the client threads. Each thread processes a client request (a search or a booking operation).
With URLyBird (as with most of the client-server systems), the end-client is the GUI.
Of course you can have many clients (many GUI) that want to access the database in local or networked-mode.
So you have to make sure that a write operation for a given record at a given time is allowed to one and just one thread.
SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCJD, SCEA in progress
www.ulisespulido.com
So you have to make sure that a write operation for a given record at a given time is allowed to one and just one thread.
therefore your locking system only needs to be concerned with multiple concurrent clients of your server.
SCJP 5.0, SCWCD 5.0, SCBCD 5.0, SCJD, SCEA in progress
www.ulisespulido.com
my understanding was to let all Threads reading operations at every time every moment and just to lock when writing over the file (create, update, delete) and for update and delete operations to also lock the record getting changed.
-------------
Chris
...ops!<br>-----------------<br>
SCJD<br>
SCWCD 1.4<br>
SCJP 1.4
Consider Paul's rocket mass heater. |