java
hjuj_91
这个作者很懒,什么都没留下…
展开
-
kd树的java实现
public class KdTree { private int n; private Node root; private static final int LEFT = 1; private static final int RIGHT = 2; private static final int BOTTOM = 3; private static fin原创 2013-09-26 10:37:57 · 1747 阅读 · 1 评论 -
Semaphore 交替输出 ping pong
import java.util.concurrent.Semaphore;class Test extends Thread{ public static final int ITERATION = 10; public static Semaphore[] semas = new Semaphore[2]; private Semaphore[] m_semas = new Semap原创 2014-06-10 14:04:48 · 814 阅读 · 0 评论