?
Solved

Threads in HP-UX

Posted on 1998-06-18
2
Medium Priority
?
614 Views
Last Modified: 2013-12-06
Is there any threading mechanism in HP-UX? Does HP-UX support POSIX threads? Please give details regarding this.
0
Comment
Question by:sudheer122697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2008088
pthread_create(3T)

NAME

pthread_create() - create a new thread of execution.

SYNOPSIS

#include <pthread.h>

int pthread_create(
   pthread_t *thread,
   const pthread_attr_t *attr,
   void *(*start_routine)(void *),
   void *arg
);

0
 

Accepted Solution

by:
jsm earned 40 total points
ID: 2008089
Sometime ago (2-3 years) HP-UX added support for userland DCE threads, but I don't know what release that support was added, and that type of threading is of minimal use in my opinion.

Real kernel threads were implemented in the 10.30 release of HP-UX. 10.30 is a Series 800 only release (servers), i.e. it is not supported in general on Series 700 machines (workstations). There will never be kernel thread support for Series 700 machines in a 10.X based release (The most recent supported release for Series 700 machines is 10.20).

Kernel threads for Series 700 machines is not currently available, but it will be available hopefully in another month or two as a patch release based on 11.0 HP-UX (11.0 is currently only supported on Series 800 machines).  This patch release will add support for most Series 700 machines (Some real old Series 700 machines were obsoleted, i.e. 705,710,720,730,750,755, and will never be supported on an 11.x based release).

The user API for HP-UX kernel threads is defined by the POSIX thread standard. You need to add a -lpthread to your compile line to access the pthread library.

Note that even when you have a version of HP-UX that supports kernel threads you still may have problems depending on what you are doing, since not all libraries are thread safe at this point. All C library and system calls are thread safe. You should consult the man pages for other API's to determine what level of thread safing is supported according to the Posix standard.


0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question