1834597 Members
4160 Online
110069 Solutions
New Discussion

HP 10.20 Threads

 
Ken Hunter
Advisor

HP 10.20 Threads

I am trying to get some code running on an HP 10.2 machine and am not having much luck. The code is written in C and contains a main routine, which kicks off a "heartbeat" thread, and then waits to receive a message indicating what other "processing" thread needs to be initiated.

I am not very familiar with HP -- especially 10.20. I have this code running on HP 11.0 and 11.11 machines with no problems. I know that HP 10.20 doesn't have the posix threads as 11.0 and 11.11 do.

I have compiled the code utilizing the aCC compiler with the /opt/dce/include libraries. I can get the main routine to kick off the heartbeat, but when I initiate a message that kicks off a "processing" thread, the processing thread runs, but the heartbeat thread does not run again. At the completion of the "processing" thread, no threads run.

Can anyone tell me what I need to do to get the threads to work properly on 10.20? Or perhaps some knowledge of the difference between Posix and DCE threads would be helpful.

I appreciate any help you can provide!
THANKS!
Lead, Follow, or Get out of the Way! - USMC
1 REPLY 1
James Murtagh
Honored Contributor

Re: HP 10.20 Threads

Hi Ken,

The main source of information for developers on hpux can be found here :

http://h21007.www2.hp.com/dev/technologies/topic/1,2608,10002,00.html

It has various papers on thread programming and posix/dce threads.

Just be aware that 10.20 only implements multiple user threads - all these threads will map to a single kernel thread. Only at 11.00 was support for mapping user threads to their own kernel threads introduced.

Regards,

James.