[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

spurious sys$hiber calls with DECthreads?

» close window

The Question is:

 
Is it something I'm doing or is it "normal" for sys$hiber() to "wake" when
pthread_create() is called from another thread in the same process?
John E. Frank
 
 


The Answer is :

 
  sys$hiber awakens at times you might expect it, and it also awakens
  whenever something else in the process or the system might call sys$wake
  targeting the process.  In other words, all calls to sys$hiber should be
  coded correctly handle "spurious" wake-up requests -- this often means
  that the code will wake up, check the status of the pending work (if
  any is available) and then loop back to hibernate when no (more) work
  is available.
 
 

answer written or last revised on ( 19-NOV-1998 )

» close window