Task Management
A number of function names have changed in the task management area. These
changes are primarily due to the simplified 32-bit programming environment.
Table "Task Management Functions"
The following comments apply to the functions described in Table
"Task Management Functions":
The DosCreateThread() function is enhanced
in Version 2.0 to allow dynamic stack growth, operating system management
of stacks for secondary threads, and the ability to create a suspended thread.
The InfoSeg architecture of 16-bit OS/2 versions
is redefined for the flat memory model. The equivalent per thread and per
process data is obtained under Version 2.0 using the DosGetInfoBlocks()
function, whereas the non-changing values can be obtained using the
DosQuerySysInfo() function.
The DosGetPrty(), DosGetPID(), and DosGetPPID()
functions are not implemented since this information is available through
the DosGetInfoBlocks() function.
DosPTrace() support is provided under OS/2
Version 2.0 for 16-bit debugging tools such as CodeView. For 32-bit debugging
tools, the DosPTrace() function is replaced by the DosDebug()
function.
DosWaitThread() is a new function allowing
a thread to suspend itself, waiting for other threads within a process to
terminate.
DosKillThread() is a new function allowing
a thread to forcibly terminate another thread within the current process.
The DosR2StackRealloc(), DosCallBack(),
and DosRetForward() functions are not applicable in the 32-bit flat
memory model environment.
[Back: Session Management]
[Next: Signal and Exception Handling]