JR Language ReferenceThis page provides a short syntactical reference to the JR language and its various constructs for concurrent programming. The meaning of the constructs is not explained in any great detail, we refer to the lecture notes for that. First of all, JR is an extension of Java. This means that every valid Java program is also a JR program. You can you all the features and libraries of Java when programming in JR. In addition to the features of Java, JR provides a number of language constructs for concurrent programming. Note that you should not use Java's constructs or libraries for concurrency when programming in JR. Bad things will happen if you do. SemaphoresJR provides semaphores as follows.
OperationsJR provides operations which is a generalization of message passing and provides several ways of communications.
Invoking operationsAssuming we have an operation declared as follows: op int fac(int n);
Servicing operations
Additional constructs in the input statement
Last modified:
Sunday, 26-Jun-2011 16:26:36 CEST
|