niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » Unix internals
Are sockets thread safe
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
jainarunk@gmail.com
*nix forums beginner


Joined: 10 May 2006
Posts: 18

PostPosted: Mon Jun 12, 2006 5:27 pm    Post subject: Are sockets thread safe Reply with quote

Hello Group,

I am working on Linux environments. The kernal version is 2.4.21 and
my question is;

Are sockets on Linux thread safe. For example if the socke it open and
one thread was
reading from the socket and had to relinquish CPU to make way for
another thread, And
then the other thread is trying to 'Write' to the same socket.

What will be the behavior.

If these libraries are not thread safe then what are my alternatives

1. onLinux
2. on Unix

Thanks for your help.

nagrik

ps: I have read the man pages for sockets and they don't say anything
about thread safety.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Tue Dec 02, 2008 3:05 pm | All times are GMT
navigation Forum index » Programming » Unix internals
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Sockets noreply PHP 1 Wed Jul 19, 2006 5:36 am
No new posts Can thread start other threads? John Henry python 2 Tue Jul 18, 2006 9:58 pm
No new posts WARNING - current temperature (60.0C) exceeds safe limits renchao85@gmail.com FreeBSD 1 Tue Jul 18, 2006 12:23 am
No new posts Which allocator to use? For fixed-size, single-thread, po... collection60@hotmail.com C++ 5 Mon Jul 17, 2006 1:40 pm
No new posts urllib (in thread) never returns Kingsley python 1 Mon Jul 17, 2006 12:53 am

Mortgages | Mortgage Loans | Credit Cards | Low Interest Credit Card | Credit Card
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.4913s ][ Queries: 16 (0.4247s) ][ GZIP on - Debug on ]