Skip to content

Instantly share code, notes, and snippets.

Ruslan cheremin

Block or report user

Report or block cheremin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cheremin /
Last active May 23, 2019
Waiting time non-monotonicity example (waiting time paradox in queueing systems with vacations)
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Ignore;
import org.junit.Test;
/** time is always in milliseconds */
public class MysteriousServerTest {
private static final ThreadLocalRandom RND = ThreadLocalRandom.current();
View Vector2D
public static final class Vector2D {
private double x;
private double y;
public Vector2D( final double x,
final double y ) {
this.x = x;
this.y = y;
You can’t perform that action at this time.