Class Process

Summary


 This class is a convenient way of creating a sub-process in a program,

Superclasses:
Runnable

Package:
lang
File:
process.icn
Methods:
invoke_run, join, set_runnable, sleep, start, stop

Fields:
pid, runnable

Source code.

Details
Constructor

Process(r)

Methods:

invoke_run()


 Invoke the code of the process.

 @p


join()


 Called by the parent.  The method waits for the child to terminate,
 and then closes the pipes.


set_runnable(r)

#
 Set the runnable object as the code body of the process.

 @p


sleep(n)


 Sleep for n milliseconds.


start()


 Called by the parent process to start the child


stop()


 Called by the parent to kill the child.  Then the {join} method is invoked.


Fields:
pid

runnable


This page produced by UniDoc on 2021/04/15 @ 23:59:53.