07-30-2007
Thanks Jgt....
Hey Borg...wanted to let you know that i have already posted two threads but each time i spent time on seacrhing for the new thread.
Don't mind but it was very frustrating. I applogise if this hurt anyone.
9 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
I am not getting post new thread button when i was logged in.
tell me how to do this.
i want to print data between two lines in a file into another file. which command should i use in UNIX (0 Replies)
Discussion started by: kamesh83
0 Replies
2. Forum Support Area for Unregistered Users & Account Problems
I can not Post a Thread. (1 Reply)
Discussion started by: spiderman3k
1 Replies
3. Forum Support Area for Unregistered Users & Account Problems
hi,
Pls help me .. i cannot able to post the threads (1 Reply)
Discussion started by: am_73798
1 Replies
4. Forum Support Area for Unregistered Users & Account Problems
hi,,
sorry, couldnt navigate myself to post a new thread, pls guide if possible
Thanks
santhosh (1 Reply)
Discussion started by: santy_33
1 Replies
5. Post Here to Contact Site Administrators and Moderators
Can you tell me how to post a new thread?
Please help me ASAP.
Thanks,
Dipakg (2 Replies)
Discussion started by: dipakg
2 Replies
6. Post Here to Contact Site Administrators and Moderators
Im new to this forum. can you guide me how to post a new thread.
Thanks in advance
Hari (3 Replies)
Discussion started by: Hari123
3 Replies
7. Post Here to Contact Site Administrators and Moderators
Hi scoot
Hope you are doing well!!
I didn't post any new thread, is their any problem in my access
could you please check it and let me know.
Previously posted threads was one of my interview question and i didn't understand how to solve , i am a new for shell script, i didn't find any help... (2 Replies)
Discussion started by: ksakil
2 Replies
8. Forum Support Area for Unregistered Users & Account Problems
Dear Moderator
I am not able to post any new thread or post reply to mine old thread.
Kindly help as i am stuck on one problem and needed suggestion.
Regards
Jaydeep (1 Reply)
Discussion started by: jaydeep_sadaria
1 Replies
9. Post Here to Contact Site Administrators and Moderators
Just joined and registered 15 minutes ago.
Can't figure out how to post a new question about 'grep'
I searched and found that I need to click the 'New Thread' button, I couldn't see any 'New Thread' buttons anywhere, so I searched around and ended up here where I DO see a 'new thread' button....... (3 Replies)
Discussion started by: TuftyDave
3 Replies
LEARN ABOUT REDHAT
thr_join
thr_join(3C) Standard C Library Functions thr_join(3C)
NAME
thr_join - wait for thread termination
SYNOPSIS
cc -mt [ flag... ] file...[ library... ]
#include <thread.h>
int thr_join(thread_t thread, thread_t *departed, void **status);
DESCRIPTION
The thr_join() function suspends processing of the calling thread until the target thread completes. The thread argument must be a member
of the current process and cannot be a detached thread. See thr_create(3C).
If two or more threads wait for the same thread to complete, all will suspend processing until the thread has terminated, and then one
thread will return successfully and the others will return with an error of ESRCH. The thr_join() function will not block processing of the
calling thread if the target thread has already terminated.
If a thr_join() call returns successfully with a non-null status argument, the value passed to thr_exit(3C) by the terminating thread will
be placed in the location referenced by status.
If the target thread ID is 0, thr_join() finds and returns the status of a terminated undetached thread in the process. If no such thread
exists, it suspends processing of the calling thread until a thread for which no other thread is waiting enters that state, at which time
it returns successfully, or until all other threads in the process are either daemon threads or threads waiting in thr_join(), in which
case it returns EDEADLK. See NOTES.
If departed is not NULL, it points to a location that is set to the ID of the terminated thread if thr_join() returns successfully.
RETURN VALUES
If successful, thr_join() returns 0. Otherwise, an error number is returned to indicate the error.
ERRORS
EDEADLK A joining deadlock would occur, such as when a thread attempts to wait for itself, or the calling thread is waiting for any
thread to exit and only daemon threads or waiting threads exist in the process.
ESRCH No undetached thread could be found corresponding to the given thread ID.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
thr_create(3C), thr_exit(3C), wait(3C), attributes(5), standards(5)
NOTES
Using thr_join(3C) in the following syntax,
while (thr_join(0, NULL, NULL) == 0);
will wait for the termination of all non-daemon threads, excluding threads that are themselves waiting in thr_join().
SunOS 5.10 27 Mar 2000 thr_join(3C)