Message-Id: <3.0.16.19980214011702.4f272000@hem1.passagen.se> Date: Sat, 14 Feb 1998 01:17:11 -0500 To: djgpp AT delorie DOT com From: Peter Palotas Subject: Thread safe programs. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk I was just wondering if someone could tell me what a thread-safe program includes, i.e. how one would make a program/library thread safe. I know this isn't really a DJGPP specific question, but isn't it an important task when porting (and well, there is multithreading libs for DJGPP too). Ofcourse not using any global or static data would make a program thread safe (or?), but what if you are writing a library that NEEDS static or global data!? Can threads be disabled during the execution of a specific function in all multi-threading systems? Very greatful for a reply to this! -- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se -- ****************************************************** * A brief description of DJGPP: * * NEVER BEFORE HAVE SO FEW DONE SO MUCH FOR SO MANY! * ******************************************************