Google

HelloSpaz: Killing an uncooperative team

This is a quick example; we just want to show that you can kill a misbehaving team. We'll be using HelloSpaz.java for this example:
  msmart@control tutorial> jikes -classpath <install dir>/share/kaffe/JanosVM.jar HelloSpaz.java
The program doesn't create its own team so we'll have to start one for it.
[Terminal 1]
  msmart@control tutorial> janosvm -config tutorial.config -name janosvm \
    -jsitcpport 14000 -noexit

[Terminal 2]
  msmart@control msmart> jsihey janosvm create team with name "Kaos" then \
    print "%(result:d)\n"
  2
  msmart@control msmart> jsihey janosvm execute run of team 2 with class \
    HelloSpaz then nothing
  msmart@control msmart>

[Terminal 1]
  hihihihihihihihihihihi
  hihihihihihihihihihihi
  hihihihihihihihihihihi
  ...
Now we just delete the team and the output should be stopped:
[Terminal 2]
  msmart@control msmart> jsihey janosvm delete team 2
Well, this is the end of the tutorial. You can also look in test/janosvm for more code examples.

Return to the Tutorial Main Page.


Copyright (c) 2000, 2001 The University of Utah and the Flux Group.
All rights reserved.

Permission to use, copy, modify, distribute, and sell this documentation for any purpose is hereby granted without fee, provided that the above copyright notice(s) appear in all copies.