Sponsored Content
Special Forums UNIX and Linux Applications High Performance Computing Memory Barriers for (Ubuntu) Linux (i686) Post 302430496 by fpmurphy on Friday 18th of June 2010 12:23:45 AM
Old 06-18-2010
Quote:
but user-level threads like GNU threads don't offer multi-core exploitation because the kernel isn't involved.
Huh? NPTL is a 1:1 threading model. NGPT is an M:N threading model. Of course the kernel is involved.
 

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Memory-waste in Ubuntu/Debian?

I have 512 mem on this laptop, though 'top' tells me I only have 380. However, Ubuntu is using 288 mb of memory, when I only have 3 terminals, running lynx, vim(for this file) and (of course) top. Considering it I have lynx running a 600 page txt file, which of course would eat some memory but 300?... (0 Replies)
Discussion started by: riwa
0 Replies

2. Linux

i686, x86 64, ppc

Hi, i am quite new to linux. I am interested in fedora linux distro. Fedora Project I dont know which one to choose, either i686, x86 64 or ppc. I prefer a live cd, coz its easy to use. And what is the difference between "Fedora Desktop Live Media" and "Fedora KDE Live Media". (3 Replies)
Discussion started by: superblacksmith
3 Replies

3. Programming

Getting the total virtual memory for ubuntu in c++

Hi guys , i need to get the total virtual memory in ubuntu but i need to write a C++ code for that, any idea on how to go about doing it? any references? or website that i can refer to ? (6 Replies)
Discussion started by: xiaojesus
6 Replies

4. Ubuntu

XP and Linux (Ubuntu) on same disk, Can I install Ubuntu on not-yet partitioned portion of disk?

My PC (Esprimo, 3 yeas old) has one hard drive having 2 partitions C: (80 GB NTFS, XP) and D: (120 GB NTFS, empty) and and a 200 MB area that yet is not-partitioned. I would like to try Ubuntu and to install Ubuntu on the not-partitioned area . The idea is to have the possibility to run... (7 Replies)
Discussion started by: C.Weidemann
7 Replies
PTHREAD_ATTR_GETSCOPE(3)				   BSD Library Functions Manual 				  PTHREAD_ATTR_GETSCOPE(3)

NAME
pthread_attr_getscope -- get and set the contention scope attribute LIBRARY
POSIX Threads Library (libpthread, -lpthread) SYNOPSIS
#include <pthread.h> int pthread_attr_getscope(const pthread_attr_t * restrict attr, int * restrict contentionscope); int pthread_attr_setscope(pthread_attr_t *attr, int contentionscope); DESCRIPTION
The pthread_attr_getscope() and pthread_attr_setscope() functions get and set, respectively, the contention scope attribute in the attr object. The contentionscope parameter specifies the scheduling contention scope of a thread. It is only possible to set the scope of a thread before the thread is created. There are two possible contention scopes: PTHREAD_SCOPE_SYSTEM The thread will contend for CPU resources with all other processes and threads in the system. Generally this means that the user thread is bound directly to the kernel scheduling for its entire lifetime. PTHREAD_SCOPE_PROCESS The thread will contend with other threads with the same scope attribute. In general, this means that all PTHREAD_SCOPE_PROCESS threads are grouped together and this group of threads contends for CPU resources. This is commonly seen to require a hybrid (``M:N'') threading model in order to multiplex the user and kernel space schedul- ing. Only PTHREAD_SCOPE_SYSTEM is supported in NetBSD. RETURN VALUES
Upon successful completion, both functions return 0. Otherwise an error number is returned to indicate the error. ERRORS
No errors are defined for pthread_attr_getscope(). The pthread_attr_setscope() function shall fail if: [EINVAL] Invalid parameter. SEE ALSO
pthread_attr(3), csf(9) STANDARDS
Both functions conform to ISO/IEC 9945-1:1996 (``POSIX.1''). BSD
July 7, 2010 BSD
All times are GMT -4. The time now is 01:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy