Solved

Threads in HP-UX

Posted on 1998-06-18
2
609 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 20 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

730 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