Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: danr@bnr.ca (Dan Reynolds)
Subject: Threads
Date: 1995/04/03	[thread overview]
Message-ID: <3lpjq8$r07@bcarh8ab.bnr.ca> (raw)

Since we are blessed by so many DEC employees in our newsgroup, I have a 
question regarding DEC threads and the use of thread safe code.

To obtain thread safe code one must remove or protect references to the 
following dependencies:

	o Static (or global) read-write data
        o File descriptors shared between threads
	o REFERENCES TO GLOBAL ERRNO
	o calls to other nonthread-safe routines.


The problem is that the GLOBAL ERRNO is used by many UNIX functions, such as
file I/O, sockets, semaphores, etc..., and even the PTHREAD library. 

So, my question is, how can one write thread safe code, when a significant 
number of UNIX functions are using the GLOBAL ERRNO, which includes the PTHREAD
library? 

thanks...

Dan

-- 
Dan Reynolds            | (613)-763-7584 | Opinions expressed are my own and do
Bell-Northern Research  |                | not necessarily reflect my employer.
Ottawa, Ontario, Canada |   danr@bnr.ca  | 
-------------------------------------------------------------------------------



             reply	other threads:[~1995-04-03  4:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-03  4:00 Dan Reynolds [this message]
1995-04-06  4:00 ` Threads Spider Boardman
1995-04-11  4:00 ` Threads Jeffrey M. Denham
1995-04-19  4:00   ` Threads Shaheen Ali
  -- strict thread matches above, loose matches on Subject: below --
1994-11-28 16:19 threads ron harter
1994-11-29 21:56 ` threads Jay R. Talbott
1994-08-03 21:05 threads Lawrence A.  Palmer
1994-08-03 23:22 ` threads Matt Thomas
1994-08-04  1:05   ` threads Sinan Karasu
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox