Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Threads in HP-UX

Posted on 1998-06-18
2
Medium Priority
?
617 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

Independent Software Vendors: 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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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.
Suggested Courses

636 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