LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-17-2003, 10:14 AM   #1
Keith Hampton
LQ Newbie
 
Registered: Oct 2003
Location: Phoenix, Arizona
Posts: 1

Rep: Reputation: 0
Smile pthreads


I am a new Linux pthreads user (programmer).

I am trying to ensure the installation of pthreads on my Redhat
Linux 9.0 is the full featured set for pthreads support.

I don't know much about installing and configuring Linux (viz., pthreads support).

Here's what I've run up against.

_POSIX_THREAD_PRIO_PROTECT and _POSIX_THREAD_PROCESS_SHARED are not defined in my
/usr/include/pthreads.h in.

I have a need to make use of attribute inheritance in new threads, mutex scheduling attributes with a priority and shared mutexes.

1) Are these attribute features supported in Linux?,

2) How do I install them from Redhat Linux 9.0, and

3) Where do I find documentation in the Linux community
listing what pthreads features and extended features
are supported by Linux.

Thanks,
Keith
 
Old 10-23-2003, 01:46 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
_POSIX_THREAD_PROCESS_SHARED
should be in sys/unistd.h if your system and install of C knows about POSIX threading.

Plus, pthread.h is usually in /usr/include/sys/pthread.h

I've not seen a pthreads.h nor have I seen it anywhere but in sys.
Not that it means that much. But something does not sound kosher, there.

As far as I know, Linux imlementations of pthreads support mutex scheduling and inheritance; code can use values set for
pthread_mutexattr_t

Just as sort of a disclaimer - you can biff future installation of some things by opting not to install certain features on your distro.

I do not know that this is true for pthread, but I sure would be careful when installing to include kernel code support, etc.
This kind of thing cannot be done retro very easily.
 
  


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
Pthreads christheavatar Programming 4 03-05-2005 09:30 PM
pthreads ftgow Linux - Software 0 07-08-2004 03:55 AM
pthreads socket9001 Programming 2 12-29-2003 12:23 AM
pthreads h/w Programming 5 10-09-2003 11:11 AM
pthreads fr0ggeh Linux - Software 9 07-18-2003 10:43 AM


All times are GMT -5. The time now is 08:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration