AnsweredAssumed Answered

Slicing and execution control flow

Question asked by VRFuser on May 5, 1997
Hello everybody,

Thinking of Tom's slicing problem I have check my current VEE application
and I have realized of the following ideas for VEE V4.0.

If I have a control flow from only one object to several User Objects and/or
User Functions, VEE execute them one by one. One example is the Tom's program.


                      +--------+
                      | START  |
                      +--------+
                          |
                          |
          +---------------+----------------+
          |               |                |
          v               v                v
      +--------+      +--------+      +--------+
      |  UF1   |      |  UO1   |      |  UO2   |
      +--------+      +--------+      +--------+


In the example, if START is pressed, UF1, UO1 and UO2 are executed one after
one. If START is removed and RUN is pressed, UF1, UO1 and UO2 are executed
at the same time.

If START object is removed and substituted by a dummy formula and display as
follows:

                   +-------------+   +-------------+   +-------------+
                   | Integer     |   | Formula     |   | Display     |     
                   +-------------+   +-------------+   +-------------+
                   | 1           |-->|A| A+3       |-->|  4          |
                   +-------------+   +-------------+   +-------------+
                          |
                          |
          +---------------+----------------+
          |               |                |
          v               v                v
      +--------+      +--------+      +--------+
      |  UF1   |      |  UO1   |      |  UO2   |
      +--------+      +--------+      +--------+

now, the application runs in the same way than a START, that is UF1, UO1 and
OU2 run one after other when RUN is pressed.

However, If we include an UNTIL BREAK object in each thread as follows:

                   +-------------+   +-------------+   +-------------+
                   | Integer     |   | Formula     |   | Display     |     
                   +-------------+   +-------------+   +-------------+
                   | 1           |-->|A| A+3       |-->|  4          |
                   +-------------+   +-------------+   +-------------+
                          |
                          |
          +---------------+----------------+
          |               |                |
          v               v                v
     +-----------+   +-----------+   +-----------+           
     |Until Break|-+ |Until Break|-+ |Until Break|-+  
     +-----------+ | +-----------+ | +-----------+ |      
                   |               |               |
          +--------+      +--------+      +--------+
          |               |               |
          v               v               v
      +--------+      +--------+      +--------+
      |  UF1   |      |  UO1   |      |  UO2   |
      +--------+      +--------+      +--------+

now, when RUN button is pressed UF1, UO1 and UO2 runs at the same time with
time-slicing.

Please, could anybody provide more information and explanations about it?
Thanks in advance,
______________________________________________________

Juan Carlos Martin
E-mail     : jcmar@mdr.indra-espacio.es
Phone      : 34-1-3963995
Fax     : 34-1-3963912
Earth Stations Department
INDRA ESPACIO / MADRID /SPAIN


Outcomes