The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Threads and Threads Count ? varungupta UNIX for Advanced & Expert Users 2 03-21-2008 06:23 PM
How many threads do I use ? the_learner UNIX for Advanced & Expert Users 5 07-17-2007 02:31 PM
Shared memory in shared library DreamWarrior High Level Programming 12 05-30-2007 01:33 PM
threads vijlak SUN Solaris 3 01-29-2007 04:55 PM
nfs threads i2admin UNIX for Advanced & Expert Users 1 03-06-2003 08:28 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-15-2006
Registered User
 

Join Date: Jan 2006
Posts: 2
Can FD's be shared between threads?

Hello,

Can a FD (file desc.) from a pipe(...); call be shared between a thread?

/ Henrik
Reply With Quote
Forum Sponsor
  #2  
Old 01-16-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
I should think so... Threads share memory don't they?
Reply With Quote
  #3  
Old 01-16-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
Quote:
Originally Posted by blowtorch
I should think so... Threads share memory don't they?
Yes,

threads which work out on the same address space do share the memory.


In addition to that they share,
File/Socket descriptors
Signal handling
Current working directory
UID/GID
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0