Jump to content
Nytro

Java concurrency

Recommended Posts

Posted

Java concurrency

Building and testing concurrent applications for the Java platform

Date: 07 Oct 2011 (Published 23 Aug 2011)

1. Learn Java concurrency basics

Threads and processes are the basic units of execution in concurrent Java programming. Every process has at least one thread, and all of the threads in a process share its resources. Understand the benefits of threads and why it's essential to use them safely.

READ: Introduction to Java threads

2. Master high-level Java concurrency utilities

Learn how to use the thread-safe, well-tested, high-performance concurrent building blocks in the java.util.concurrent package, introduced in Java SE 5. And find out how to avoid both common and lesser-known concurrency pitfalls.

PRACTICE: Concurrency in JDK 5.0

READ: 5 things you didn't know about.. java.util.concurrent, Part 1

READ: 5 things you didn't know about ... java.util.concurrent, Part 2

READ: Java concurrency bug patterns for multicore systems

3. Test and analyze your concurrent code

Take advantage of tools developed by IBM researchers for testing, debugging, and analyzing concurrent Java applications.

DOWNLOAD: Java Thread Activity Analyzer(Free download)

DOWNLOAD: IBM Lock Analyzer for Java(Free download)

DOWNLOAD: IBM Thread and Monitor Dump Analyzer for Java(Free download)

DOWNLOAD: Multicore Software Development Kit(Free download)

DOWNLOAD: ConcurrentTesting - Advanced Testing for Multi-Threaded Applications(Free limited trial version)

PRACTICE: Multithreaded unit testing with ConTest

4. Explore alternate concurrency models

In response to advances in multicore processor hardware, approaches to writing concurrent applications for the Java platform are diversifying. Concurrency support in two alternate languages for the JVM — Scala and Clojure — eschew the thread model. Learn about the actor and agent concurrency in those languages, and about third-party Java and Groovy libraries that implement those models. And learn more about fork-join, a multicore-friendly concurrency enhancement in Java SE 7.

LISTEN: Alex Miller talks concurrency

READ: Explore Scala concurrency

READ: Clojure and concurrency

READ: Introducing Kilim: An actor framework for Java concurrency

READ: Resolve common concurrency problems with GPars

READ: Java theory and practice: Stick a fork in it

Sursa: www.ibm.com/developerworks/training/kp/j-kp-concurrency/index.html

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...