🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Performance topics

#627
From: David R. Giller
Date: Mon, 06 Apr 1992 07:42
28 lines
1538 bytes
Hi all.

I have some questions regarding the performance of various inter-thread
synchronization and semaphore techniques in OS/2 2.0.  (1.3 data is still
probably current).

In particular:

How much time does it take for the system to process DosEnterCriticalSection()
(or whatever the name of the call is -- I don't have the docs handy)?  I
am writing an application that will have several layers, much like a network
protocol stack.  Each one is going to be a thread that works much like a 
filter, managing the packets that are fed through the layers.  How much of a 
hit would I take if I used a critical section whenever I change the structures 
between layers? (assuming each is running in its own thread).  Should I use 
semaphores instead?

Thanks.
-Dave

PS: any insight into the issues related to this would be appreciated.

-Dave
-- 
David Giller, Box 134 | Q: How many Oregonians does it take to screw in a light
Occidental College    | bulb?  A: Three.  One to replace the bulb, and two to
1600 Campus Road      | fend off all the Californians trying to share the
Los Angeles, CA 90041 | experience. ---------------------------rafetmad@oxy.edu
Technical Details
Message-ID: <1992Apr6.074224.19762@cheshire.oxy.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!usc!cheshire.oxy.edu!rafetmad

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!usc!cheshire.oxy.edu!rafetmad
From: rafetmad@cheshire.oxy.edu (David R. Giller)
Subject: Performance topics
Message-ID: <1992Apr6.074224.19762@cheshire.oxy.edu>
Organization: Occidental College, Los Angeles, CA.  USA
Date: Mon, 6 Apr 1992 07:42:24 GMT
Lines: 28