Questions about MVS Unix facility such as create_thread would probably get an 
answer on the OMVS-l newsgroup.

Jon
    On Tuesday, September 10, 2019, 12:46:23 PM PDT, Thomas David Rivers 
<riv...@dignus.com> wrote:  
 
 In the Callable Services documentation, in the pthread_create
description, the usage notes describe the thread initialization routine.

This routine is called with R13 pointing at 208 bytes of save area, and with
R1 pointing to a parm block.

That parm block contains:

      a.  The address of an initial work area for use by the initialization
            routine during its setup processing.

      b.  The address of a fullword field that contains the length of 
the initial work area.

But - the documentation doesn't seem to guarantee a minimum size for
that work area.

Does anyone know what can be assumed?  Also, if the size isn't 
sufficient, it's not
clear what the initialization routine should do - should it ABEND?  
There doesn't
seem to be a documented mechanism for the initialization routine to 
politely "fail".

(point #9 there does say that 256KB is required in the high private 
below the line
for pthread_create() to operate otherwise ENOMEM is returned.  But, it 
doesn't
mention how much of that 256KB might be passed to the initialization 
routine.)

      - Thanks! -
      - Dave Rivers -


-- 
riv...@dignus.com                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to