Skip to main content

Problem:

Shows the use of CBL_ALLOC_MEM, CBL_GET_SHMEM_PTR, CBL_PUT_SHMEM_PTR, CBL_EXEC_RUN_UNIT and CBL_FREE_MEM

Resolution:

INTRODUCTION

==========

The Multiple Run Unit (Mru) demo illustrates how you can start multiple, concurrent run units, each with a separate, window display.

SOURCE FILES:

=========

Program Files     Description

----------------     -----------------------------------------------------------

Ru0.cbl              Main program that starts  and stops the other run units.

Ru1.cbl               (Subordinate run units that function (once

Ru2.cbl              -(started) independent of one another and

Ru3.cbl               (the Main program until terminated.

Copy Files

----------------     -----------------------------------------------------------

Ru0.cpb              Dialog System generated copy book for the Main program.

Rununit.cpb        Dialog System generated copy book for the subordinate run units.

Screensets:

----------------     -----------------------------------------------------------

Ru0.gs                Main program screenset.

Rununit.gs          Subordinate run units screenset.

REQUIREMENTS:

==========

NetExpress 3.1 and Dialog System

OPERATION:

========

Animate Ru0.cbl and Step All. Respond to the dialog by starting the other run units. Note that all run units are executing independently. Stop the run units and terminate

the aplication.

==========================================================

Keywords: demonstration, sample, example, demo, mru.zip

demo.ex

demo.me

demo.ne

demo.se

Attachments:

mru.zip

Old KB# 4012