Solved

Threads in HP-UX

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now