HP3000-L Archives

August 2003, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Olav Kappert <[log in to unmask]>
Reply To:
Olav Kappert <[log in to unmask]>
Date:
Tue, 5 Aug 2003 13:46:29 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (84 lines)
Francis:

You first need to understand the concept behind the intrinsic.

A parent can create multiple child processes.  These child process can
either run
run as an independent process (a process which will not return back to
the parent
upon completion of it task) or as a dependent child (a process that will
return to
the parent upon completion of its task).

An independent child will execute while its parent is executing, whereas
the
dependent child will force the parent to suspend its execution until the
child has
terminated (with or without and error).

The child provides the pin number of  itself so that the parent process
may terminate its child process if running independently.

In the example you provided, the child is dependent and therefore the
KILL will
fail because the child will have terminated before control is returned
to the parent
and the next intrinsic is executed.

Olav Kappert
IOMIT International (Application Development Specialist - Consultant)



Gribbin, Francis J. wrote:

>Hi Peter,
>
>ACTIVATE has a flag that determines whether the parent runs in parallel or waits until the child is done.
>
>Frank Gribbin
>Potter Anderson & Corroon LLP
>
>-----Original Message-----
>From: Peter Smithson [mailto:[log in to unmask]]
>Sent: Tuesday, August 05, 2003 6:17 AM
>To: [log in to unmask]
>Subject: [HP3000-L] Another newbie intrinsic question. (createprocess
>etc.)
>
>
>I've got some code from a customer that does this -
>
>CREATEPROCESS
>if pin is not zero
>        ACTIVATE
>        KILL
>
>I only have a basic understanding of these intrinsics but as I
>understand it, that code will create a process and then activate it.  So
>at this point both the parent and the child are running in parallel?
>
>But if that's the case then won't the KILL just stop the child quite
>early on in it's execution - so what's the point in starting it?
>
>If I'm wrong about the running in parallel bit and the ACTIVATE waits
>for the child to finish then why kill it?
>
>Any idea what this code could be trying to do?
>
>Thanks
>
>Peter
>
>* To join/leave the list, search archives, change list settings, *
>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>* To join/leave the list, search archives, change list settings, *
>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>
>

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2