11-19-2008
What is a POSIX lib? libpthread.so is the POSIX threads library for a system that supports POSIX threads. How they are implemented is up to the kernel developer, not POSIX.
For Linux there is one API call: clone() that is unique to linux. It is used to exec new processes to be used mostly for threads.
Is POSIX scalable; multiprocessor support?
This does not make much sense to me:
POSIX is a standard, a set of rules - like a green traffic signal means "go". It doesn't say how big or bright the green light has to be. Just says 'must be green'
9 More Discussions You Might Find Interesting
1. Programming
hi all,
can anyone tell me some good site for the mutithreading tutorials, its application, and some code examples.
-sushil (2 Replies)
Discussion started by: shushilmore
2 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I am sorry, I know this is not correct forum/silly question (usually this is requirement in some vacancies), but i hope someone can explain to me, what is the meaning of :
SUN Tier 3 Support
Tier 3 Application Installation
Level 2 Solaris
Level 2 AD MOM + DBA
Thank you. (0 Replies)
Discussion started by: blesets
0 Replies
3. Solaris
required Solaris 5.10 Kernel patch 137111-03
required Solaris 5.10 Fibre Channel Device Driver patch 125184-08
I want to know about the descriptions and what the patches will do. I searched www.sun.com (patches/updates) but don't see I am looking for. (1 Reply)
Discussion started by: Y4Net
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I want to learn that all the family of x86 processors are supported by kernel.
I want to buy a board, which has VIA ESP10K processor and
CHIPSET: VIA CN333 north bridge & VIA VT8237R south bridge
Where can I find this?
Thanks. (5 Replies)
Discussion started by: yildiz.a
5 Replies
5. UNIX for Dummies Questions & Answers
Hello, I have a question regarding ACLs and their availability across different Unix platforms via NFS share.
If I have an AIX/FreeBSD/Solaris/HP-UX client that has an nfs share from a different system mounted on it, will the ACLs on the nfs share be processed properly?
My guess is that as... (2 Replies)
Discussion started by: bstring
2 Replies
6. Solaris
Hi,
Anyone able to advise on how to find the kernel patch level of an ABE?
showrev and uname -a will provide kernel patch details of the running environment, but how can I run these commands against the ABE or where do these commands get their information from i.e. is the kernel patch level... (3 Replies)
Discussion started by: CiCa
3 Replies
7. Ubuntu
Does anyone know at which kernel version support for Phenom II x6 first appeared? (7 Replies)
Discussion started by: Varsel
7 Replies
8. Solaris
folks,
I have a query. Can we create Kernel zone with the earlier Solaris OS?
More precisely Can i create kernel zone with any different OS than that of OS in global zone. As of now in sol11U2 if we create kernel zone, there will be sol11u2 OS in kernel zone since the same is in global.
But... (4 Replies)
Discussion started by: Vaishey
4 Replies
9. UNIX for Beginners Questions & Answers
Not just background process running ... but im looking if unix has any multi-threading concept like in Java, C# ... if not present, can you pls share the nearest feature in unix that is close to multi-threaded concept (3 Replies)
Discussion started by: i4ismail
3 Replies
LEARN ABOUT LINUX
pthread_setconcurrency
PTHREAD_SETCONCURRENCY(3) Linux Programmer's Manual PTHREAD_SETCONCURRENCY(3)
NAME
pthread_setconcurrency, pthread_getconcurrency - set/get the concurrency level
SYNOPSIS
#include <pthread.h>
int pthread_setconcurrency(int new_level);
int pthread_getconcurrency(void);
Compile and link with -pthread.
DESCRIPTION
The pthread_setconcurrency() function informs the implementation of the application's desired concurrency level, specified in new_level.
The implementation only takes this as a hint: POSIX.1 does not specify the level of concurrency that should be provided as a result of
calling pthread_setconcurrency().
Specifying new_level as 0 instructs the implementation to manage the concurrency level as it deems appropriate.
pthread_getconcurrency() returns the current value of the concurrency level for this process.
RETURN VALUE
On success, pthread_setconcurrency() returns 0; on error, it returns a nonzero error number.
pthread_getconcurrency() always succeeds, returning the concurrency level set by a previous call to pthread_setconcurrency(), or 0, if
pthread_setconcurrency() has not previously been called.
ERRORS
pthread_setconcurrency() can fail with the following error:
EINVAL new_level is negative.
POSIX.1-2001 also documents an EAGAIN error ("the value specified by new_level would cause a system resource to be exceeded").
VERSIONS
These functions are available in glibc since version 2.1.
CONFORMING TO
POSIX.1-2001.
NOTES
The default concurrency level is 0.
Concurrency levels are only meaningful for M:N threading implementations, where at any moment a subset of a process's set of user-level
threads may be bound to a smaller number of kernel-scheduling entities. Setting the concurrency level allows the application to give the
system a hint as to the number of kernel-scheduling entities that should be provided for efficient execution of the application.
Both LinuxThreads and NPTL are 1:1 threading implementations, so setting the concurrency level has no meaning. In other words, on Linux
these functions merely exist for compatibility with other systems, and they have no effect on the execution of a program.
SEE ALSO
pthread_attr_setscope(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 2009-04-10 PTHREAD_SETCONCURRENCY(3)