LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-06-2007, 08:06 PM   #1
nuxrl
Member
 
Registered: Jun 2006
Location: NY, USA
Distribution: Slackware, Arch
Posts: 176

Rep: Reputation: 35
Default thread library


Not sure if this is the right forum to post this question...

When pthread_create() is called from user code, how can I find out which version of the implementation is used, LinuxThreads or NPTL?

If
Code:
$getconf GNU_LIBPTHREAD_VERSION
doesn't print anything, can I assume LinuxThreads is used as the default thread library?

Thank,

-n
 
Old 03-07-2007, 01:57 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
that command gives a return on both.
Code:
$ getconf GNU_LIBPTHREAD_VERSION
linuxthreads-0.10
Code:
$ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.6
like that so i guess you can just parse the output and determine the default.
for now at least most all linux systems use NPTL as default but also have linuxthreads as a fallback unless someone specifically compiles their glibc without linuxthreads or the system is very old and has linuxthreads only.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why are my apps using the wrong thread library? dombrowsky Linux - Software 2 02-11-2006 10:09 PM
Slackware and Native POSIX Thread Library (NPTL) win32sux Slackware 19 05-17-2005 10:41 AM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM
DB2 Client Library on Redhat ES 3 - multithreaded by default ? colmmagoo Linux - Software 0 09-09-2004 08:47 PM
Thread Library used in Slack and Linux ckamheng Slackware 1 01-12-2004 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration