Difference between revisions of "Wait"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This wait(n) function will wait for a notification from process ''n'' * '''Pass:''' an Int representing the process ID to wait for a notification from * '''R…')
 
Line 14: Line 14:
 
       notify(1);
 
       notify(1);
 
     };
 
     };
 
+
 
   proc 0 {
 
   proc 0 {
 
       wait(0);
 
       wait(0);

Revision as of 11:13, 19 October 2016

Overview

This wait(n) function will 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(1);
   };

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

Since: Version 1.00