Programming Java threads in the real world, Part 3
Roll-your-own mutexes and centralized lock management
By Allen Holub, JavaWorld.com, 11/01/98
Page 5 of 5
Next month I'll look at a couple of other useful semaphores: a condition variable and a Djikstra counting semaphore. I'll
also discuss critical sections and class-level locks. In future columns, we'll take a look at other thread-related classes,
such as timers and reader/writer locks, and explore architectural solutions to threading-related problems.
About the author
Allen Holub has been working in the computer
industry since 1979. He is widely published in magazines (Dr.
Dobb's Journal, Programmers Journal, Byte,
MSJ, among others). He has seven books to his credit, and
is currently working on an eighth that will present the complete
sources for a Java compiler written in Java. Allen abandoned C++
for Java in early 1996 and now looks at C++ as a bad dream, the
memory of which is mercifully fading. He's been teaching
programming (first C, then C++ and MFC, now OO-Design and Java)
both on his own and for the University of California Berkeley
Extension since 1982. Allen offers both public classes and in-house
training in Java and object-oriented design topics. He also does
object-oriented design consulting. Get more information and contact
Allen via his Web site http://www.holub.com.