Skip to content

Latest commit

 

History

History

tutorial

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Ray Java Tutorial

Exercises

Each file of java/example/src/main/java/org/ray/exercise/Exercise*.java is a separate exercise. To run them, execute the following command under ray/java folder.

java -classpath "tutorial/target/ray-tutorial-1.0.jar:tutorial/lib/*" org.ray.exercise.Exercise01

Exercise 1: Define a remote function, and execute multiple remote functions in parallel.

Exercise 2: Execute remote functions in parallel with some dependencies.

Exercise 3: Call remote functions from within remote functions.

Exercise 4: Use Ray.wait to ignore stragglers.

Exercise 5: Actor Support of create Actor and call Actor method.