FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GitHub Viewer

import java.util.*; class Main { static Deque stack; static EliminationBackoffStack concurrentStack; static List[] poppedValues; static int TH = 10, NUM = 1000; // Each unsafe thread pushes N numbers and pops N, adding // them to its own poppedValues for checking; using Java's // sequential stack implementation, ArrayDeque. static Thread unsafe(int id, int x, int N) { return new Thread(() -> { String action = "push"; try { for (int i=0, y=x; i

Back | FazBrowse Home | New Git URL