STIMER WAIT for a small amount of time;

I did this some years ago, when I wanted to show to some students how some
parallel running subtasks wrote their messages not sequentially, but mixed;
but, as it turned out, every subtask did its complete work in one step,
once started, because it never returned the CPU.

When I added some STIMER WAITs to the processing of the (identical) subtasks,
the messages appeared in mixed order.

HTH, kind regards

Bernd


Am 17.10.2019 um 14:54 schrieb Thomas David Rivers:
Does anyone happen to know the best way for a running task
to give up running and let another task run?

But - this isn't "give up" as in ending the task, just giving up
the CPU to allow another task to run and then returning to this
task.

Sorta like "I'm done for the moment if something else would like to run".

  - Thanks -
   - Dave R. -


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to