07-19-2009
Thanks all for looking after this so promptly. As regards Neo's question: the unanswered threads link could show only 15 pages instead of 20. That will - in probably well over 95% of the cases - prevent users reaching a page full of unanswered threads that they cannot respond to.
Last edited by figaro; 07-19-2009 at 10:30 AM..
Reason: Removal of typo
9 More Discussions You Might Find Interesting
1. IP Networking
Ok someone has to be able to help me here.
I have the latest webmin, and i have bind
i have a domain name called
thedigitaldream.co.uk
i have one server, just one as im poor
so the one server is gunna be the dns, email, web and ftp server. Its only for a small site anyway so it will... (16 Replies)
Discussion started by: matt2kjones
16 Replies
2. UNIX for Advanced & Expert Users
Hi all,
Using shell script and awk statements, I manage to get the month and year of the Patch Bundle installed on the system. Now I have to compare month and year of Patch Bundle installed to the Patch Bundle which is desired on the workstation. I am able to do easily comparison of year but not... (1 Reply)
Discussion started by: pankschawla
1 Replies
3. Shell Programming and Scripting
Hi,
how can I format date function to find n (n=1 to 11) months ego ?
For exemple now we are in july and I want to have a variable presenting april.
How should it be :
month=`date +%b`?????
Many thanks before. (8 Replies)
Discussion started by: big123456
8 Replies
4. UNIX for Advanced & Expert Users
I have the script which appends month and year to the name of the
file. Now every time when I append the month-year combination I
have to subtract 2 months from the current date and then append
it, since we are sending our vendor 2 months prior worth of data
eveytime.
#! /usr/bin/ksh
... (5 Replies)
Discussion started by: mahekr2000
5 Replies
5. UNIX for Advanced & Expert Users
Hi all,
How can I get the list of all Threads and the Total count of threads under a particular process ?
Do suggest !!
Awaiting for the replies !!
Thanks
Varun:b: (2 Replies)
Discussion started by: varungupta
2 Replies
6. UNIX for Dummies Questions & Answers
Hi Everyone,
Good day.
Scenario:
2 unix servers -- A (SunOS) and B (AIX)
I have an ftp script to sftp 30 files from A to B which happen almost instantaneously i.e 30 sftp's happen at the same time.
Some of these sftp's fail with the following error:
ssh_exchange_identification: Connection... (1 Reply)
Discussion started by: jeevan_fimare
1 Replies
7. Shell Programming and Scripting
Hi,
I need the date n months before currrent date
I need to store date in a varible say x
and then get the date 6 month before and get the result in the format 25-Aug-2009
Please Advice (7 Replies)
Discussion started by: mad_man12
7 Replies
8. Shell Programming and Scripting
Hi,
I have many files of monthly means from model simulation such as 1,2,3,4.....12, corresponding to jan, feb, mar,....., dec.
e.g. avg_1.nc, avg_2.nc, ............., avg_12.nc.
i want to write a shell script such that it should conveet number into months and year such as..... (4 Replies)
Discussion started by: mahesh shinde
4 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I would like to find out the number of months between two dates as below example.
date 1 = 03-02-2016
date 2 = 15-11-2015
I need 04 as months difference.
Any help on this is highly appreciated.
Thanks,
Keerti (3 Replies)
Discussion started by: keertis
3 Replies
LEARN ABOUT LINUX
pthread_attr_setscope
PTHREAD_ATTR_SETSCOPE(3) Linux Programmer's Manual PTHREAD_ATTR_SETSCOPE(3)
NAME
pthread_attr_setscope, pthread_attr_getscope - set/get contention scope attribute in thread attributes object
SYNOPSIS
#include <pthread.h>
int pthread_attr_setscope(pthread_attr_t *attr, int scope);
int pthread_attr_getscope(pthread_attr_t *attr, int *scope);
Compile and link with -pthread.
DESCRIPTION
The pthread_attr_setscope() function sets the contention scope attribute of the thread attributes object referred to by attr to the value
specified in scope. The contention scope attribute defines the set of threads against which a thread competes for resources such as the
CPU. POSIX.1-2001 specifies two possible values for scope:
PTHREAD_SCOPE_SYSTEM
The thread competes for resources with all other threads in all processes on the system that are in the same scheduling allocation
domain (a group of one or more processors). PTHREAD_SCOPE_SYSTEM threads are scheduled relative to one another according to their
scheduling policy and priority.
PTHREAD_SCOPE_PROCESS
The thread competes for resources with all other threads in the same process that were also created with the PTHREAD_SCOPE_PROCESS
contention scope. PTHREAD_SCOPE_PROCESS threads are scheduled relative to other threads in the process according to their schedul-
ing policy and priority. POSIX.1-2001 leaves it unspecified how these threads contend with other threads in other process on the
system or with other threads in the same process that were created with the PTHREAD_SCOPE_SYSTEM contention scope.
POSIX.1-2001 only requires that an implementation support one of these contention scopes, but permits both to be supported. Linux supports
PTHREAD_SCOPE_SYSTEM, but not PTHREAD_SCOPE_PROCESS.
The pthread_attr_getscope() function returns the contention scope attribute of the thread attributes object referred to by attr in the buf-
fer pointed to by scope.
RETURN VALUE
On success, these functions return 0; on error, they return a nonzero error number.
ERRORS
pthread_attr_setscope() can fail with the following errors:
EINVAL An invalid value was specified in scope.
ENOTSUP
scope specified the value PTHREAD_SCOPE_PROCESS, which is not supported on Linux.
CONFORMING TO
POSIX.1-2001.
NOTES
The PTHREAD_SCOPE_SYSTEM contention scope typically indicates that a userspace thread is bound directly to a single kernel-scheduling
entity. This is the case on Linux for the obsolete LinuxThreads implementation and the modern NPTL implementation, which are both 1:1
threading implementations.
POSIX.1-2001 specifies that the default contention scope is implementation-defined.
SEE ALSO
pthread_attr_init(3), pthread_attr_setaffinity_np(3), pthread_attr_setinheritsched(3), pthread_attr_setschedparam(3),
pthread_attr_setschedpolicy(3), pthread_create(3), pthreads(7)
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2008-10-24 PTHREAD_ATTR_SETSCOPE(3)