/* two_lock_queue.cvl: a "Two-Lock Concurrent * Queue Algorithm", from Michael and Scott, * https://www.cs.rochester.edu/research/synchronization/pseudocode/queues.html. * Originally from "Simple, Fast, and * Practical Non-Blocking and Blocking * Concurrent Queue Algorithms", PODC96. */ #include #include #include "queue.h" $input int N=2; $input int T=2; $output int RESULT[T][N]; int A[N]; queue_t queue; void thread(int tid){ for(int i=0; i