🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Christophe Wolfhugel Mon, 18 Mar 1991 14:49
Is this a good programming style?
#2463
Author: Christophe Wolfhugel
Date: Mon, 18 Mar 1991 14:49
15 lines
1196 bytes
I have a small piece of code (yeah really small: less than 100 clock cycles)
that will be run only a few times per hour (say 10 or 20). This code accessed
a shared segment that must be locked.

Due to the fast execution time of the critical section is it a bad behavior
to use DosEnterCritSec() & DosExitCritSec() instead of locking the shared
memory (I'm afraid locking will take much more time that the treatement
itself).

Any suggestions welcome.

-- 
Christophe Wolfhugel (on irc: Zolf)   |  Email: wolf@grasp1.univ-lyon1.fr
INSA Lyon - Departement Informatique  |  "Take care when driving, 90% of the"
69621 Villeurbanne Cedex, France      |  "births are accidents!"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads