🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3327

C++ and Threads

#3327
From: Matthew Peters
Date: Thu, 07 Jan 1993 13:16
13 lines
1061 bytes
I will not be running that many threads.  Somewhere around 30-40, but most of
them will be blocking so it should not be that bad.  The problem is that these
30-40 Threads will all be using the same globel data.  I will have about 300
different lists that I will have to protect.  The idea thing is to let as many
threads read as they like, but only let the lists be update by one thread at a
time.  Which means that I will have to make sure no one is looking at the list
when this is done.  So, the only way to do it is to use 2 semephores.  So now I
am using at least 600 sems just for the lists.  And that is not the only place I
have to protect data.  
There are RAM semephore in OS/2 2.0?  I thought RAM semephore were taking out? 

Thanks for your input
Matthew
Technical Details
Message-ID: <726426027.AA00000@blkcat.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!blkcat!Uucp

Show Full Headers
Complete Article Headers
From: Matthew.Peters@f347.n109.z1.fidonet.org (Matthew Peters)
Sender: Uucp@blkcat.UUCP
Path: arc1-ca.pugleaf.net!sparky!uunet!blkcat!Uucp
Newsgroups: comp.os.os2.programmer
Subject: C++ and Threads
Message-ID: <726426027.AA00000@blkcat.UUCP>
Date: Thu, 07 Jan 1993 08:16:12 -0500
Lines: 14