Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

pthread_yield_np - unsupported; temporarily available; use sched_yield (CrUn104)

ME Impacts TH Impacts

Problem description

The pthread_yield_np routine is a nonportable alias for the POSIX sched_yield function. This routine will be available on a temporary basis in the Tru64 UNIX Migration Environment for HP-UX.

The pthread_yield_np entry point is an alias for the POSIX standard sched_yield function, intended to provide a common way for a DECthreads application to yield its processor on both Tru64 UNIX, which supports sched_yield, and OpenVMS, which does not.

Identifiers

C/C++ Functionspthread_yield_np    

Old behavior

Applications that expect to run multiple threads on a uniprocessor system might call pthread_yield_np after releasing a mutex as a hint that this would be an effective place for the thread to be preempted. This can reduce the chances of timeslicing a thread that holds a mutex, perhaps subsequently requiring the new thread to block on that mutex.

See also

Solution description

The pthread_yield_np routine is in the Tru64 UNIX Migration Environment.

Applications will be able to use this routine from the Tru64 UNIX Migration Environment for HP-UX. Please note that the Migration Environment is temporary. Applications that use pthread_yield_np should be recoded to call the POSIX standard function sched_yield directly. Both Tru64 UNIX and HP-UX support sched_yield.

See also


Problem summary

classifications source types OS release severity type
ME, TH C, C++ any HP-UX 11i version critical unavailable
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.