Operating System - Linux
1820636 Members
1851 Online
109626 Solutions
New Discussion юеВ

HP-UX 11i problem when using less than 10ms time sleep.

 
SOLVED
Go to solution
ъ╣АьЮРыкЕ
New Member

HP-UX 11i problem when using less than 10ms time sleep.

HP-UX has a problem when application uses a
function like usleep or nanosleep or sigalarm
to sleep less than 10ms.
It doesn't work in HP-UX 11i neither PA-RISC nor Itaninum2 CPU.

Is there any ohter method to use sleep less than 10ms.

Please help me.

Best Regards..
3 REPLIES 3
Peter Godron
Honored Contributor

Re: HP-UX 11i problem when using less than 10ms time sleep.

Hi,
and welcome to the forums!

I assume you have seen the comments in:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=13589
and another answer
"I used
system "perl -e 'select(undef,undef,undef,$wait);'" in a TCL script and now it runs perfectly! "

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
James R. Ferguson
Acclaimed Contributor
Solution

Re: HP-UX 11i problem when using less than 10ms time sleep.

Hi:

You don't provide any specific details of your code or your expectations.

I'm going to assume the you are running 11.23 since you say that very short sleeps don't work on either PA-RISC or Itanium.

The ITRC Patch Database shows at least seven patches for 11.23 and high resolution timers, including patches to enable times with resolutions less than 10ms. A search for the keywords "usleep or nanosleep" yielded:

PHCO_34599
PHKL_34356
PHKL_34357
PHKL_34358
PHKL_34361
PHKL_35429
PHKL_35709

Regards!

...JRF...
John Fjeldberg
Advisor

Re: HP-UX 11i problem when using less than 10ms time sleep.

Hi,
I see that HP has provided patched for 11.23, but I am wondering if anyone knows if this is a problem on 11.11 (PA/800)as well? I don't seem to be able to get under 20 ms in my tests.

Regards,
JHF