04-10-2013
Moderator's Comments:
|
|
Dear thread contributors:
i won't enter the discussion if what the thread-o/p wants is legal or not. But even if it is legal we generally have the policy that we do not want such threads.
The purpose of our forum is to build a knowledge base. Asking technical questions and answering them builds towards such a knowledge base, this thread (and the ones similar to this) do not.
I hope you understand. This thread is closed.
|
|
all the best
bakunin
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi guyes and girls.
I am totaly new to this, so i need some advice on books and such.
What book should i read if im going to get good in Unix?
And if im going to read that book, what OS do i need for my first experience? And where do i get it?
Some other things you folks can post is... (4 Replies)
Discussion started by: Seyedx
4 Replies
2. Programming
Hi
i have to work with pro c,c++ , can any body help me or that which are the best books for that,and some web address where i can get suitable information,
:( (4 Replies)
Discussion started by: kapilnagda
4 Replies
3. Solaris
I am interested in books with good coverage of Solaris 8 or 9, maybe 10 (is 10 widely deployed in production yet)
I've been doing unix admin for a while but on other platforms. I've noticed that most if not all of Solaris books in the bookstore assume you need to know the basic stuff, ksh,... (1 Reply)
Discussion started by: etc
1 Replies
4. What is on Your Mind?
I am not a native English speaker. I wanna improve my English. But I am kind of lazy, so I decide to pratice my English by reading English novel. I'd like read books about magic or superman and so on. How can I get that kind of books from Internet? I'll really appreciate it!! (4 Replies)
Discussion started by: virmin
4 Replies
5. UNIX for Dummies Questions & Answers
hi every one ... :)
I'm a new member... I Want resources in Unix
can you give me some Linke for free books (1 Reply)
Discussion started by: newtec
1 Replies
6. Fedora
Not totally new to Linux. Have done distro installs before. At this point, I'm looking for a way out of the MS lock down I've been in. Looking for a good beginner/intermediate book. One that will cover things such as server installs as well as things like X-Windows/SAMBA installs from CLI. What I... (2 Replies)
Discussion started by: jcayo11
2 Replies
7. Programming
Simple question , what good book is next step in learning C.
I finished with K&R and I want to go to the next step , so if someone has a good book please share title :D
I looked for Advanced C programming by example but it is too expansive 400$ on Amazon :(
So please tell me (7 Replies)
Discussion started by: solaris_user
7 Replies
8. AIX
I want to study AIX,who have these e-books?PDF or ppt is better, thanks for sharing!
1、 AIX System Admin
AN10 AIX 6 Basics
AN12 ...
-- shortened -- (1 Reply)
Discussion started by: fringker
1 Replies
LEARN ABOUT X11R4
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)