The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

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 09:23 PM
Wall, Write, select users, pipe a text file, HELP Before I'm Bald! chimodel UNIX Desktop for Dummies Questions & Answers 1 03-13-2008 05:50 PM
Problems with pipe(...); using select(...); ne2000 High Level Programming 0 01-12-2006 04:18 PM
Pipe SQL select statement results to script houtakker UNIX for Dummies Questions & Answers 6 10-31-2003 01:20 PM
How to use pipe() in multiple threads? wminghao High Level Programming 2 08-15-2002 10:27 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-12-2007
willil willil is offline
Registered User
  
 

Join Date: Jul 2007
Location: OR
Posts: 4
Threads with pipe and select?

Hi. I just found this site while searching for some info on a problem and thought I'd see if anyone else knows the answer.

I have two threads that are connected by a pipe. Thread A can write to the pipe and Thread B can read the data from the pipe. My problem is that when I use select() in Thread B to detect if the pipe is read ready, the select never returns. (It works with actual separate processes) Is there something special I need to do or don't know about here?

Thanks,
Willi
  #2 (permalink)  
Old 07-13-2007
jgt jgt is offline
Registered User
  
 

Join Date: Apr 2007
Location: 44.21.48N 80.50.15W
Posts: 455
You might try posing your question on codecomments.com
  #3 (permalink)  
Old 07-13-2007
willil willil is offline
Registered User
  
 

Join Date: Jul 2007
Location: OR
Posts: 4
Thanks. I'll try codecomments.com and it sounds like I may be missing something if it's working on those platforms. I'm woking on linux, but maybe solaris or hp will show me something.
  #4 (permalink)  
Old 07-13-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by willil View Post
My problem is that when I use select() in Thread B to detect if the pipe is read ready, the select never returns.
I have happily used this technique on linux(2.4+), Irix 6.5, Solaris 6 upwards, AIX 5.1, Tru64 5.1 and HPUX-11.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0