package com.concurrent.guard;

/**
 * User shijingui
 * Date 2017/5/14
 */
public class Test
{
}

@@ -89,9 +89,361 @@
 Test
-%0A%7B
+ %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        RequestQueue requestQueue = new RequestQueue();%0A%0A        for (int i = 0; i %3C 10; i++) %7B%0A            new ServerThread(requestQueue, %22ServerThread%22 + i).start();%0A        %7D%0A%0A        for (int i = 0; i %3C 10; i++) %7B%0A            new ClientThread(requestQueue, %22ClientThread%22 + i).start();%0A        %7D%0A    %7D
 %0A%7D%0A

update guard