1 /* Copyright (c) 2006-2019. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
8 import org.simgrid.msg.Msg;
9 import org.simgrid.msg.Task;
10 import org.simgrid.msg.Process;
11 import org.simgrid.msg.MsgException;
12 import org.simgrid.msg.HostNotFoundException;
14 public class Victim extends Process {
15 public Victim(String hostname, String name) throws HostNotFoundException {
16 super(hostname, name);
18 public void main(String[] args) throws MsgException{
20 Msg.info("Suspending myself");
22 Msg.info("OK, OK. Let's work");
23 Task task = new Task("work", 1e9, 0);