[comp.sys.ibm.pc] DESQview API

sc@qmet.UUCP (Steve Croft) (09/13/89)

I'm writing a program which requires multitasking to service a remote
user on an asychronous serial port, a local user on the keyboard, a
device on another asynch port, and a mainframe on a synchronous port
(SDLC network - 3270 programming).  I am using a DigiBoard card for
the serial ports (one port configured as a sync port).  3270
programming will be with the IBM HLLAPI.  The hardware is a PS/2 Model
50Z.

I looked at some multitasking kernel and it seems that the DESQview API
should work out well.  Has anyone used the DESQview API?  Any thoughts,
hints, tips, and/or traps?  How does DESQview implement threads (that
is to say, what does DESQview consider the differences between threads
and processes)?

steve
-- 
******************************************************************************
*   I will COBOL no more, forever... *      Steve Croft, Qualimetrics, Inc.  *
*                                    *            (uunet!mmsac!qmet!sc)      *
******************************************************************************

sc@qmet.UUCP (Steve Croft) (01/12/90)

The DESQview API doc indicates that the tsk_free() function will kill a
task and return any memory associated with the task.  It goes on to give
a few specific examples, except one:  memory allocated with
api_getmem().

This (probably simple) question is:

If a task allocates some memory with api_getmem(), is that memory freed
when a tsk_free() call kills the task, or does it need to be explicitly
returned with api_putmem() before the task is killed?

Steve
-- 
******************************************************************************
*   If what I say is not correct,    *      Steve Croft, Qualimetrics, Inc.  *
*       then it's not what I meant!  *      (ucbvax!ucdavis!csusac!qmet!sc)  *
******************************************************************************