10 More Discussions You Might Find Interesting
1. Solaris
Hi guys,
I'm new with solaris.
I just received sunfire T2000 server.
Problem:
ALOM keep hang/stuck/jammed.
Steps do before it hang :
1. Connect to T2000 (using RJ45 - DB9 cable)
2. Open putty, connect via serial.
3. Power on the server.
4. Its loading.
5. then, hang.
... (1 Reply)
Discussion started by: rajasraf
1 Replies
2. IP Networking
Hi, on our Solaris 10 servers, one day 'netstat -a' command return very slow after TCP output, wait 5 minute on this line -
SCTP:
Local Address Remote Address Swind Send-Q Rwind Recv-Q StrsI/O State
------------------------------- ------------------------------- ------ ------ ------ ------... (6 Replies)
Discussion started by: ora_dba
6 Replies
3. Programming
Hi...
this simple code has warning messages but it work..
void *th(void *g){
int y = 10;
pthread_exit((void*)y);
}
int main(int argn, char ** argp){
void * ret;
pthread_t thread;
pthread_create(&thread, NULL, th, NULL);
pthread_join(thread,... (10 Replies)
Discussion started by: prompt
10 Replies
4. Programming
Main function creates Thread0 and Thread1 by using pthread_create systemcall.
In Thread0() {
we are calling pthread_exit(0) ;
}
and in Thread1() {
status= pthread_join(tid,NULL);
sprintf(ebuf,"timer6: can't join with thread0, status: %d",status);
Assert(status==0,ebuf);
}
... (4 Replies)
Discussion started by: mansa
4 Replies
5. UNIX for Advanced & Expert Users
Hi,
I would like to know if the call
of pthread_join( thread,&status) for a thread already created
in main function will free the memory allocated to thread after the pthread_join retruns or should I wait the
termination of main function?
Is there any need to cancel or exit the thread if I... (0 Replies)
Discussion started by: Behnaz
0 Replies
6. AIX
Why is one of my blade hanging and does nothing after trying to boot from CD???
==================
I tried to press 1....JS20 does not support SMS menu
Here's what I see after 30 minutes...
-------------------------------------------------------------------------------
... (0 Replies)
Discussion started by: mifch
0 Replies
7. Shell Programming and Scripting
Im making a script that goes out to about 200 servers and grabs log files daily and need to make sure the script gets all the servers it can even if one is out. I am ftp'ing the files over but if i cant connect to the server the process looks like it dies and the script is finished. (4 Replies)
Discussion started by: rcunn87
4 Replies
8. Red Hat
Hello,
I am having a HP proliant 350 G3 sever installed wih RedHat linux 9.0
when I enterd using any user(Except root) the server hanged after few seconds, also the folder icons are blacked out and the names of the folder icons are disapper.
can any body help me.
Ajay (1 Reply)
Discussion started by: ajay234
1 Replies
9. UNIX for Dummies Questions & Answers
I would like to write my own version of pthread_join and some of the other pthread function. Does some know any pages that have som examples of doing this?? (1 Reply)
Discussion started by: bigblop
1 Replies
10. Linux
Hi everybody, i need help regarding my Linux start up.I was trying to configure internet connection with my Red Hat in order to use for Internet,but of no avail and I think I have changed one parameter to activate device during computer start up.
Now the problem is during start up and... (1 Reply)
Discussion started by: andysastre
1 Replies
pthread_join(3) Library Functions Manual pthread_join(3)
NAME
pthread_join - Causes the calling thread to wait for the termination of the specified thread.
LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so)
SYNOPSIS
#include <pthread.h>
int pthread_join(
pthread_t thread,
void **value_ptr);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
PARAMETERS
Thread whose termination is awaited by the calling routine. Return value of the terminating thread (when that thread either calls
pthread_exit(3) or returns from its start routine).
DESCRIPTION
This routine suspends execution of the calling thread until the specified target thread thread terminates.
On return from a successful pthread_join(3) call with a non-NULL value_ptr argument, the value passed to pthread_exit(3) is returned in the
location referenced by value_ptr, and the terminating thread is detached.
If more than one thread attempts to join with the same thread, the results are unpredictable.
A call to pthread_join(3) returns after the target thread terminates. The pthread_join(3) routine is a deferred cancelation point: the
target thread will not be detached if the thread blocked in pthread_join(3) is canceled.
If a thread calls this routine and specifies its own pthread_t, a deadlock can result.
The pthread_join(3) (or pthread_detach(3)) routine should eventually be called for every thread that is created with the detachstate
attribute of its thread attributes object set to PTHREAD_CREATE_JOINABLE, so that storage associated with the thread can be reclaimed.
RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Successful completion. The value specified by thread does not refer to a joinable thread. The value specified by thread does not refer to
an existing thread ID. A deadlock was detected, or thread specifies the calling thread.
ERRORS
None
RELATED INFORMATION
Functions: pthread_cancel(3), pthread_create(3), pthread_detach(3), pthread_exit(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
pthread_join(3)