🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: C++ and Threads

#3317
From: Roman Fischer
Date: Thu, 07 Jan 1993 07:20
26 lines
1411 bytes
In article <726341759.AA00000@blkcat.UUCP>, Matthew.Peters@f347.n109.z1.fidonet.org (Matthew Peters) writes:
|> I am currently writing a C++ program that is going to use a lot of Threads.  And

How many threads ?

|> since the Threads will be using a lot of globel lists of data, what is the best

Many lists, or always the same list?

|> way to let only one thread read/write the list at a time?  I am using system
|> sems.  Is there anything else that would be better to use?  The reason why I ask

If the threads are in different processes, yes. If you don't need to serialize
diffrent processes, just the threads in ONE process, use RAM-Sems.

...
|> Matthew


Well, it seems my last posting was lost somewhere. I uploaded a thread-class for C++
on ftp-os2.nmsu.edu some days ago. So if you like... This class also features parameter
passing to threads.
If there are any comments, problems or bugs, please let me know.


Bye         Roman
Technical Details
Message-ID: <1993Jan7.072018.6422@glance.ch>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!chsun!vichy.glance.ch!romanf
References: <726341759.AA00000@blkcat.UUCP>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!chsun!vichy.glance.ch!romanf
From: romanf@glance.ch (Roman Fischer)
Subject: Re: C++ and Threads
Message-ID: <1993Jan7.072018.6422@glance.ch>
Keywords: C++, Threads, Semaphores, Processes
Sender: Roman Fischer
Reply-To: rofische@iiic.ethz.ch
Organization: ETH-Zurich, Switzerland
References:  <726341759.AA00000@blkcat.UUCP>
Date: Thu, 7 Jan 93 07:20:18 GMT
Lines: 28