LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-02-2007, 01:48 PM   #1
jkoshi
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.

regards,
John
 
Old 05-02-2007, 09:17 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
Google

Code:
"thread safe" functions
and all will be revealed.

Hope this helps.
 
Old 05-02-2007, 09:59 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,065

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
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.

jlinkels
 
Old 05-03-2007, 01:03 PM   #4
studioj
Member
 
Registered: Oct 2006
Posts: 460

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

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.
 
  


Reply


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 01:46 AM
Power-Off Safety Features? Brett-NZ Linux - Newbie 3 03-09-2005 09:39 AM
Thread Safety on PHP Gerardoj Linux - General 2 03-28-2004 06:22 AM
safety first with kernelupgrade, but how? deNiro Slackware 1 12-20-2003 09:02 AM
firewall is safety? hurtsman Linux - Networking 2 12-02-2001 04:14 AM


All times are GMT -5. The time now is 03:20 PM.

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