Wait

From Mesham
Revision as of 15:45, 15 April 2019 by Polas (talk | contribs) (4 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Overview

This wait(n) function will block and wait for a notification from process n

  • Pass: an Int representing the process ID to wait for a notification from
  • Returns: Nothing

Example

#include <parallel>

function void main() {
   proc 1 {
      notify(0);
   };

  proc 0 {
      wait(1);
   };
};

Since: Version 1.00