From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3ea3751944fb5801,start X-Google-Attributes: gidfee84,public From: danr@bnr.ca (Dan Reynolds) Subject: Threads Date: 1995/04/03 Message-ID: <3lpjq8$r07@bcarh8ab.bnr.ca>#1/1 X-Deja-AN: 100804614 organization: Bell-Northern Research Ltd. newsgroups: comp.unix.osf.osf1 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 | -------------------------------------------------------------------------------