| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Multi-user programming |
Erik Huelsmann wrote in a message to All: EH> Is there anybody there who can explain to me the limitations EH> multi-user programming will give me to file access? I am not sure I understand what you mean by "multi-user." OS/2 is a multi-tasking, but not a multi-user, operating system. EH> For example: I wanted to lock a file on multiple records, EH> but they were not in one sequence; they were these numbers: EH> 5 6 10 and 50 OS/2 handles locking by byte offset within a file. It knows nothing about records, which are details 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? Are you writing a native OS/2 program or a DOS/Windows program? EH> Any litterature on this subject would be greatly EH> appreciated. An OS/2 program can call DosSetFileLocks (or DosProtectSetFileLocks if really paranoid), and can issue concurrent locks for multiple discontiguous ranges. The details are available in the OS/2 Control Program Reference, part of the OS/2 Toolkit. Note that a common mistake is that you cannot assert overlapping lock ranges for exclusive access. -- Mike ---* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107) 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: 323/107 150 3615/50 396/1 270/101 105/103 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™.