import java.util.Arrays;
import java.util.Hashtable;
import java.util.Vector;
+import java.util.concurrent.Semaphore;
/**
* A process may be defined as a code, with some private data, executing
public Vector<String> args;
/* process synchronization tools */
- /**
- *
- */
- /**
- *
- */
- protected Sem schedBegin, schedEnd;
+
+ /* give the full path to semaphore to ensure that our own implementation don't get selected */
+ protected java.util.concurrent.Semaphore schedBegin, schedEnd;
private boolean nativeStop = false;
/**
this.bind = 0;
this.args = new Vector<String>();
this.properties = null;
- schedBegin = new Sem(0);
- schedEnd = new Sem(0);
+ schedBegin = new java.util.concurrent.Semaphore(0);
+ schedEnd = new java.util.concurrent.Semaphore(0);
}
try {
MsgNative.processCreate(this, host.getName());
} catch (HostNotFoundException e) {
- throw new RuntimeException("The impossible happend (yet again): the host that I have were not found",e);
+ throw new RuntimeException("The impossible happened (yet again): the host that I have were not found",e);
}
}