www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/13/19:21:46

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 <blizzar AT hem1 DOT passagen DOT se>
Subject: Thread safe programs.
Mime-Version: 1.0

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! *
******************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019