TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Bilow
from: Erik Huelsmann
date: 1995-09-01 19:03:04
subject: Multi-user programming

Hello Mike,
 
 MB> OS/2 handles locking by byte offset within a file.  
 MB> It knows nothing about records, which are details 
 MB> of organization imposed internally by your program.

 EH> Share under WIN/OS2 would not let me lock them all. Is it so 
 EH> that I can only lock one record or subsequent area at a time?

 MB> Are you writing a native OS/2 program or a DOS/Windows program?
 
Well actually, both, since the interface code of the program is very
different, but the libraries incorporating the functionality of the program
are the same. So I would like to be able to write the same program under
Windows (as costumers demand it) and under OS/2,  as I demand to use it
myself. 
 
But at the moment I am using the windows version of this program and I had
the idea that I am unable to lock two or more different regions at the same
time.
I would like to lock byte-regions: 50-100 and 500-600 at the same time,
since it is a database, of which I am altering records at the same time.
When altering a record, I want to lock it from read and write access, so
that no other user can make the mistake to alter the contents while I am
too. Thereby, nobody can read the record, so no-one can base his decisions
on the wrong information, as I am just updating the info.
 
Hope to be clear this time,
 
Erik/2

--- Maximus 2.01
* Origin: HCC Groningen-1 (050-275565 t/m v32b/v42b) lijn 1 (2:500/19)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 500/19 9 28/777 2/777 105/42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.