title: Mutex in Java 1.4
body: <p>I need to isolate function <code>myFunc()</code> from executing from several threads. I know how to solve this task with <code>Mutex</code>. Since <code>Java 1.4</code> not supports <code>Mutex</code> how to solve this task in another way?</p>