The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help me to answer this lo-lp-kl Shell Programming and Scripting 0 05-25-2008 10:45 PM
Answer them if u can... dreambig UNIX for Dummies Questions & Answers 5 12-07-2007 11:14 AM
quick answer DarkestEvil UNIX for Dummies Questions & Answers 9 10-30-2007 06:42 PM
Is sed the answer? LaLonde Shell Programming and Scripting 7 08-29-2007 07:45 PM
can any one answer ???? mobile01 High Level Programming 2 11-30-2006 12:32 PM

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

Join Date: Jul 2007
Posts: 5
Can anybody answer this.....

Hi i am trying the threads concept in unix environment using C...

but i am getting error of "wait_fd: Couldn't find procinfo for fd 24"...

what does this error mean.....

help me in solving this issue...

Thanks in advance
shivamasam
  #2 (permalink)  
Old 07-05-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
where do you see this?

are you trying to reference a thread that no longer exists?
  #3 (permalink)  
Old 07-06-2007
shivamasam shivamasam is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 5
i am seeing this error at runtime.... i have cretaed a thread which monitors a particular directory for any new files,, if any file is added... this thread is needs to be active and start further processing of picking that file and so on....

but when i start the application... for the first time it is picking all the existing files in dirctory.... but during runtime if i add a new file to the dir it is giving a error of "wait_fd Couldn't find proc info for fd 24".....

why is this happpening?
and i would like to know how to monitor the status of a threrad?

Thanks
shivamasam
  #4 (permalink)  
Old 07-06-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
1. So how does your thread monitor for new files in a directory?

2. Surely once it finds something it just the calls some routine to handle the new file, why do you need to "monitor the status of the thread"?

3. At the moment I have very little idea what you actually have so I can't make any sensible problem determination.

The standard way to use threads is to

1. let threads run at their own speed

2. share information through common memory

3. synchronise operations and notify events with conditions

4. guard access with mutexes

5. cleanup with joins and pthread_cleanup_push/pop
Sponsored Links
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 04:55 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