开发者

Advanced multithreading - Java [closed]

开发者 https://www.devze.com 2023-03-15 18:40 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 11 years ago.

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:

  1. Start a project of your own, if you haven't already
  2. 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).

0

精彩评论

暂无评论...
验证码 换一张
取 消