Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-02-2007, 02:48 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 13

Rep: Reputation: 0
Thread safety

Hello everyone,

I was wondering if there is a list somewhere of the functions
that are not thread safe under gcc.

Old 05-02-2007, 10:17 PM   #2
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30

"thread safe" functions
and all will be revealed.

Hope this helps.
Old 05-02-2007, 10:59 PM   #3
Senior Member
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,707

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
If I am not mistaken, there are a few functions in the libc which are not thread safe and those are clearly indicated in the GNU libc manual. There are not many of them if I remeber well.

Old 05-03-2007, 02:03 PM   #4
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
lots of times there are thread safe versions hidden in there as well see
#define _REENTRANT

important to remember
the POSIX/SUSv3 standard developers indicate that atomicity for socket I/O is "unspecified".

its not a bad idea to always do you own serialization.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall Safety bjb_nyj101 Linux - Security 13 04-02-2007 02:46 AM
Power-Off Safety Features? Brett-NZ Linux - Newbie 3 03-09-2005 10:39 AM
Thread Safety on PHP Gerardoj Linux - General 2 03-28-2004 07:22 AM
safety first with kernelupgrade, but how? deNiro Slackware 1 12-20-2003 10:02 AM
firewall is safety? hurtsman Linux - Networking 2 12-02-2001 05:14 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration