Advanced multithreading - Java [closed]
I don't come across work that requires much experience with multi-threading
. So I was wondering if anyone know of site (open source project) where I could take look at real world examples of some heavy duty code that takes care of thread pools
solves deadlock
situation, uses nonblocking algorithms
, reentrant locks
, join-fork
, futures-callables
well you get the idea.
To be more specific I'm开发者_JAVA百科 looking for J2EE and MOM integration and messaging used between them.
These use everything you have mentioned and have the benfit of being quite well documented from a design point of view too.
JGroups, Jboss Cache and its successor Infinispan
Maybe have a look at the original Java java.util.concurrent package. That must be state of the art.
Not aware of any particular site that goes through this with anything other than a trivial example (I'm guessing you've already gone through the various tutorials out there).
My recommendation would be:
- Start a project of your own, if you haven't already
- Get on GitHub and search around for multi-threaded Java apps that look reasonably stable/large/complex
Option 2 will, at least, give you some real-world experience and let you see what multithreaded code in a production system actually looks like (i.e. because it will be code that has been worked, and reworked by real programmers, solving a real problem).
精彩评论