TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Matthew Laird
from: Peter Schuller
date: 1997-02-05 07:00:44
subject: Re: Multiple threads accessing the same files

> I'm not very well versed on this sort of thing (I still need to find a OS/2 
 > C++ compiler first! =)

If you're looking for a shareware/freeware (don't remember) there is Gnu C++ 
with the EMX libs.

 but I see one problem with that.  The imfamous 
 > Windows 3.1 bug, it sounds like you're suggesting non-preemptive 
 > multitasking.  What if the thread that currently has access dies?  Will 
 > everything then be locked out of that file?

I could have some sort of timeout, but again it's not good, I know that! I 
just can't figure out how on earth it's done... 

 > Also, what if the thing that 
 > wants access, say a tosser, works for 5 minutes at it.  That could feeze 
 > everything else until it's done.

Well. That can be solved by handing away the access now and then (eg in 
between every area is processed), but as I said it's a bad idea.
 
>  I'm not sure how Maximus does it, but in 
 > the msgapi, there's a bit about how it locks things.  And somehow it does 
 > to pre-emptive multitasking, because while squish is tossing you can access 
 > the message areas.  Again (as I said in the C++ echo), the commenting may 
 > be horrible, but the source for these programs may be worth looking at to 
 > see how Scott solved these problems.


Yeah, I think I have the SQDEV????.ZIP file somewhere on my HD, I'll take a 
look, I want my system to support squish anyway...

 > I know this doesn't help much, but it does point out two weaknesses...I 
 > only wish I had some better ideas for you...good luck!

Thanx! I'll certainly need it!

/ Peter Schuller   [TeamOS/2]   petersch{at}kuai.se


--- AdeptXBBS v1.08a26 (VC) (Registered)
* Origin: Gamma Epsilon 24h/day +46-(0)18-367781 (2:206/139)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 206/100 205/625 270/101 712/624 711/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™.