A semaphore implemented on top of SimGrid synchronization mechanisms. You can use it exactly the same way that you use classical semaphores but to handle the interactions between the processes within the simulation.
public static native void
Class initializer, to initialize various JNI stuff
public native boolean
returns a boolean indicating it this semaphore would block at this very specific time Note that the returned value may be wrong right after the function call, when you try to use it… But that’s a classical semaphore issue, and SimGrid’s semaphores are not different to usual ones here.