2005-01-06 synchronizedの代替 Java Lock lock = new ReentrantLock(); lock.lock(); try { ・・・ } finally { lock.unlock(); }