01-23-2009
The Concept of thread
Hi all
This is my first thread here.i confused with the concept of thread.Can anyone tell me this concept in detail.my Quation may be at primary level.
Thanx in advance for help.
4 More Discussions You Might Find Interesting
1. Programming
how about asynchronous canceling?
or with signal?
if with signal whether it effects the process?
my english so badly :( :( (1 Reply)
Discussion started by: alan.zhao
1 Replies
2. AIX
hi.... Friends...
Why using mirroring ?
what is the use of mirroring? just any one tell about clearly....
thanks.... (4 Replies)
Discussion started by: Kannan841
4 Replies
3. UNIX for Advanced & Expert Users
Hi Gurus,
Please help me in below requirement.
Instance =5 (it is user parameter)
total=52 (it is user parameter
i need to split this to 5 and reminder as 1 instances totally 6
for example i need to splitt to each
52/5=10.4
1-10
11-20
21-30
31-40
41-50 (2 Replies)
Discussion started by: ragu.selvaraj
2 Replies
4. UNIX for Dummies Questions & Answers
Is wc -c and wc -m same ?
Shellscript::cat file1
hello
Shellscript::cat file1 | wc -c
6
Shellscript::cat file1 | wc -m
6
Shellscript::file file1
file1: ASCII text
Shellscript::uname -a
Linux was85host 2.6.27.45-0.1-vmi #1 SMP 2010-02-22 16:49:47 +0100 i686 i686 i386 GNU/LinuxAtleast... (5 Replies)
Discussion started by: shellscripting
5 Replies
LEARN ABOUT MOJAVE
pthread_detach
PTHREAD_DETACH(3) BSD Library Functions Manual PTHREAD_DETACH(3)
NAME
pthread_detach -- detach a thread
SYNOPSIS
#include <pthread.h>
int
pthread_detach(pthread_t thread);
DESCRIPTION
The pthread_detach() function is used to indicate to the implementation that storage for the thread thread can be reclaimed when the thread
terminates. If thread has not terminated, pthread_detach() will not cause it to terminate. The effect of multiple pthread_detach() calls on
the same target thread is unspecified.
RETURN VALUES
If successful, the pthread_detach() function will return zero. Otherwise an error number will be returned to indicate the error. Note that
the function does not change the value of errno as it did for some drafts of the standard. These early drafts also passed a pointer to
pthread_t as the argument. Beware!
ERRORS
The pthread_detach() function will fail if:
[EINVAL] The implementation has detected that the value specified by thread does not refer to a joinable thread.
[ESRCH] No thread could be found corresponding to that specified by the given thread ID, thread.
SEE ALSO
pthread_join(3)
STANDARDS
The pthread_detach() function conforms to ISO/IEC 9945-1:1996 (``POSIX.1'').
BSD
April 4, 1996 BSD