In using the function usleep under SOLARIS even though we provide
a value far below 20 milli seconds the smallest sleep time we get is 20 milli
seconds. Has anyone else run inti this or is there some parameter that can be
Thanks In Advance
1) Add real-time scheduling to youe code
2) use the timer14 module - Ask the sun people for this module.
>You need to do two things:
> 1) Add real-time scheduling to youe code
> 2) use the timer14 module - Ask the sun people for this module.
Solaris nap results:
-- Time In Seconds --
loop ms poll usleep select
1000 1 10.0 20.0 0.0
100 10 1.0 2.0 0.0
10 100 1.0 .5 0.0
1 1000 1.0 .1 1.0
Until the next disk seek...
Im doing a very tight loop reading from a socket and want to free up the
processor when there is no pending reads. I call yeild() but the CPU is still
pegged. I cant run usleep() as Im already using the Alarm signal in a parent
Is there another way I can do a usleep without using alarms? The man page warned
me of thi happening!
Is there another way of reducing CPU load?
I use sginap() on IRIX and this works great.
Thanx .. Joe.
2. L0phtCrack ?
10. usleep in 2.5.1?