9 More Discussions You Might Find Interesting
1. Solaris
Hello :) !
i've few doubts.
1) how can we find the newly attached disk in SOLARIS ?
2) how to change port number of a service ?
3) how can we find that autofs is running in our system without using
svcs and prstat commands ?
4) we know that there are several types of dns servers in... (0 Replies)
Discussion started by: vamshigvk475
0 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone,,
I am new to the forum...but not to Unix.
I have gathered few questions from my mates who attended interviews in various companies as I have to attend one on dec 3rd for Sys admin position. Please respond with the answers you know and also help with various other interview... (2 Replies)
Discussion started by: impawan
2 Replies
3. Shell Programming and Scripting
Hello everyone
I update my question.
Thanks for your reply joeyg
If I type the last command and send to a text file. I get this
last >usuarios.txt
root pts/0 160.40.35.277 May 22 11:08 still logged in.
root pts/0 alopez02 May 22 09:23 - 10:11 (00:47)
root pts/0 160.40.35.277 May 20... (0 Replies)
Discussion started by: lo-lp-kl
0 Replies
4. UNIX for Dummies Questions & Answers
Try to answer these questions on Unix:
1.what will be the segment() function do?
2.How Unix is more powerful than Windows?
3.Where ownership details will be stored of a particular file in Unix?
4.State different uses of ^ symbol in regular expressions.
5.What does export command used for?... (5 Replies)
Discussion started by: dreambig
5 Replies
5. UNIX for Dummies Questions & Answers
i know by posting this people are going to get mad at me but, when i try to download unix for my Windows XP i find a whole bunch of files that i dont know what to do with, so please help, sorry if this has already been posted... or is a stupid question :o (9 Replies)
Discussion started by: DarkestEvil
9 Replies
6. Solaris
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 (3 Replies)
Discussion started by: shivamasam
3 Replies
7. Programming
Q.1 Diffrence between terminal and pseudo-terminal ?
Q.2 What is terminal login ? What is a netwok Login ?
Q.3 What is meant by baud rate of a terminal ?
Q.4 which structure is used for job control in Unix/Linux ?and where these structure are means in which directory ? (2 Replies)
Discussion started by: mobile01
2 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Please explain what does '$*' mean.
what does the command cd /~abc do, especially what does '~' mean?
cheers. (1 Reply)
Discussion started by: uni_ajay_r
1 Replies
9. Programming
Hi ,
how can i get the system reply from a system() command ?
is it possible to evaluate the return of a system command ? (4 Replies)
Discussion started by: Sven28
4 Replies
pthread_launch_policy_np(3T) pthread_launch_policy_np(3T)
NAME
pthread_launch_policy_np() - setting thread launch policies
SYNOPSIS
PARAMETERS
request This parameter determines the precise action to be taken by these functions.
answer This parameter is an output parameter in which values are returned. The meaning of answer depends on request parameter.
tid This parameter gives the value of the thread id for certain requests.
DESCRIPTION
Each process shall have a launch policy. Each thread shall have a launch policy. The launch policy for a thread does not have to match
the launch policy for the process. The launch policy determines the locality domain where the newly created process or thread will be
launched in a ccNUMA system. The locality domains covered by a process's or thread's processor set are the available locality domains.
The function sets a thread launch policy for a specific thread. The thread specified by tid is the target thread whose launch policy is
changed. The value can be used to refer to the calling thread.
is currently not supported for threads. If is used on a thread, it is silently ignored and zero is returned for successful completion.
When a process creates another process (via or the child process will inherit the parent process's launch policy. The initial thread in
the child process will inherit the launch policy of the creating thread (and not that of its process). Other threads in a multi-threaded
process inherit their launch policy from the creating thread.
For all launch policies, the target thread is bound to the locality domain on which it was launched. The target is allowed to execute on
any processor within that locality domain.
When setting a launch policy, if the target already has processor or locality domain binding, the existing binding will not be overwritten.
Instead the locality domain in which the target is bound (whether locality domain binding or processor binding) will be used as the start-
ing locality domain for implementing the launch policy.
Refer to mpctl(2) man page for further details on launch policies.
Note: locality domains are tightly tied to the physical components of the underlying system. As a result, the performance observed when
using launch policies based on locality domains may vary from system to system. For example, a system which contains 4 locality domains,
each containing 32 processors, may exhibit different performance behaviors from a system that contains 32 locality domains with 4 proces-
sors per domain. The launch policy that provides optimal performance on one system may not provide optimal performance on a different sys-
tem for the same application.
The request parameter specifies the action to take and may be one of the following:
The current launch policy of the target thread is returned in the
answer parameter. This request currently returns or to indicate the current launch policy of the thread specified by tid.
Other launch policies may be added in future releases and returned via this option. Applications using this option should be
written to handle other return values in order to continue working on future releases.
This request establishes a round robin launch policy
for the specified thread. The successive child threads of the specified thread will be launched on different locality
domains in a round robin manner until all available locality domains have been used by threads in the launch tree. At that
point, the selection of locality domains begins again from the original locality domain. The answer parameter is ignored.
This request establishes a fill first launch policy
for the specified thread. The successive child threads of the specified thread will be launched on the same locality domain
as their parent thread until one thread has been created for each available processor in the domain. At that point, a new
locality domain is selected and successive threads are launched there until there is one thread per processor. All available
locality domains will be used before the original domain is selected again. The answer parameter is ignored.
This request establishes a packed launch policy
for the specified thread. The successive child threads are launched on the same locality domain as their parent thread. The
answer parameter is ignored.
This request establishes a least loaded launch policy
for the specified thread. The successive child threads are launched on the least loaded locality domain in the processor set
regardless of the location of their parent thread. The answer parameter is ignored.
This request establishes a tree based round robin launch policy
for the specified thread. This request differs from in which threads become part of the launch tree. This launch policy
includes all descendents of the target thread in the launch tree. The answer parameter is ignored.
This request establishes a tree based fill first launch policy
for the specified thread. This request differs from in which threads become part of the launch tree. This launch policy
includes all descendents of the target thread in the launch tree. The answer parameter is ignored.
This request unsets any launch policy in the thread. The system will employ
a default, optimal policy in determining where the newly created thread will be launched. The existing binding of the thread
is not changed. The answer parameter is ignored.
RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set).
ERRORS
If any of the following occur, the function returns the corresponding error number:
[EINVAL] The request parameter contains an illegal value.
[EINVAL] The value specified by answer is illegal.
[ESRCH] No thread could be found in the current process that matches the thread ID specified in tid.
WARNINGS
is currently not supported for threads. If is used on a thread, it is silently ignored and zero is returned for successful completion. If
the request parameter is answer is set to For all other request values, answer parameter is ignored. Applications dependent on the complete
implementation of should use threads.
AUTHOR
was developed by HP.
SEE ALSO
mpctl(2), sleep(3C), rtsched(2).
STANDARDS CONFORMANCE
Pthread Library pthread_launch_policy_np(3T)