Difference between revisions of "Notify"

From Mesham
Jump to navigationJump to search
(Created page with '== Overview == This notify(n) function will notify process ''n'', this target process can wait on or test for a notification * '''Pass:''' an Int representing the process I…')
 
m (4 revisions imported)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
  
This notify(n) function will notify process ''n'', this target process can wait on or test for a notification
+
This notify(n) function will notify process ''n'', this target process can wait on or test for a notification. This is non-blocking and will continue as soon as the function is called.
  
 
* '''Pass:''' an [[Int]] representing the process ID to notify
 
* '''Pass:''' an [[Int]] representing the process ID to notify
* '''Returns:''' nothing
+
* '''Returns:''' Nothing
  
 
== Example ==
 
== Example ==
Line 12: Line 12:
 
  function void main() {
 
  function void main() {
 
     proc 1 {
 
     proc 1 {
       notify(1);
+
       notify(0);
 
     };
 
     };
 
  };
 
  };

Latest revision as of 15:45, 15 April 2019

Overview

This notify(n) function will notify process n, this target process can wait on or test for a notification. This is non-blocking and will continue as soon as the function is called.

  • Pass: an Int representing the process ID to notify
  • Returns: Nothing

Example

#include <parallel>

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

Since: Version 1.00