home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / programm / 7381 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.0 KB

  1. From: Matthew.Peters@f347.n109.z1.fidonet.org (Matthew Peters)
  2. Sender: Uucp@blkcat.UUCP
  3. Path: sparky!uunet!blkcat!Uucp
  4. Newsgroups: comp.os.os2.programmer
  5. Subject: C++ and Threads
  6. Message-ID: <726426027.AA00000@blkcat.UUCP>
  7. Date: Thu, 07 Jan 1993 08:16:12 -0500
  8. Lines: 14
  9.  
  10. I will not be running that many threads.  Somewhere around 30-40, but most of
  11. them will be blocking so it should not be that bad.  The problem is that these
  12. 30-40 Threads will all be using the same globel data.  I will have about 300
  13. different lists that I will have to protect.  The idea thing is to let as many
  14. threads read as they like, but only let the lists be update by one thread at a
  15. time.  Which means that I will have to make sure no one is looking at the list
  16. when this is done.  So, the only way to do it is to use 2 semephores.  So now I
  17. am using at least 600 sems just for the lists.  And that is not the only place I
  18. have to protect data.  
  19. There are RAM semephore in OS/2 2.0?  I thought RAM semephore were taking out? 
  20.  
  21. Thanks for your input
  22. Matthew
  23.  
  24.