roippi
Developer
Also of note is the 1.5 addition of the java.util.concurrent.locks interface. Mafia is a multi-threaded application and thus has to make sure those threads don't interfere with one another. Synchronized blocks do the job, but the locks package really adds a lot more flexibility. You can explicitly unlock threads, interrupt locks, create timed locks, etc.
I bring this up because recently there was this thread which has to do with thread deadlock. It's pretty inevitable that every so often concurrency issues are going to pop up, so it's nice to have additional tools in that regard.
I bring this up because recently there was this thread which has to do with thread deadlock. It's pretty inevitable that every so often concurrency issues are going to pop up, so it's nice to have additional tools in that regard.