Links

  • 1. Sogeti
  • 2. JBoss
  • 3. IBM
  • 4. Oracle
  • 5. SpringSource
  • 6. NL-JUG
  • 7. Java

Archives

Syndication  RSS 2.0

RSS 1.0
RSS 2.0

Bookmark this site

Add 'JCN Blog' site to delicious  Add 'JCN Blog' site to technorati  Add 'JCN Blog' site to digg  Add 'JCN Blog' site to dzone

Posted by Jan-Hendrik Kuperus at 11:44 on Thursday 12 November    Add 'The Quest for Parallelism – Slides from JFall' site to delicious  Add 'The Quest for Parallelism – Slides from JFall' site to technorati  Add 'The Quest for Parallelism – Slides from JFall' site to digg  Add 'The Quest for Parallelism – Slides from JFall' site to dzone

Yesterday, at the 2009 edition of JFall, I gave a talk about parallelism. The slides from that presentation can now be downloaded here.

For those of you who missed my talk, stay tuned to this blog. I am working out a summary article.

–JH

Posted by jcn at 22:18 on Wednesday 13 December    Add 'Effective Concurrent Java' site to delicious  Add 'Effective Concurrent Java' site to technorati  Add 'Effective Concurrent Java' site to digg  Add 'Effective Concurrent Java' site to dzone

Brian Goetz was ook op Javapolis aanwezig en gaf twee sessies. Zijn eerste sessie ging over concurrency. Hij behandelde verschillende regels die je in je achterhoofd moet houden als je te maken hebt met concurrency. Een aantal die voorbij kwamen:

  • encapsulate data: hoe minder data er is waar andere klassen makkelijk bij kunnen (bijv. public static variabelen), hoe minder je rekening hoeft te te houden met synchronization.
  • encapsulate synchronization: synchronization is eigenlijk een set afspraken en als 38 van de 40 methoden in een klasse zich er aan houden en de laatste 2 niet, is er alsnog een probleem met die klasse. Hij liet ook wat voorbeelden zien van scenario’s die vaak fout gingen en hoe ze verbeterd konden worden.
  • document: documenteer in klassen hoe de synchronisatie afgehandeld is (of niet). Hij stelde hier verschillende annotations voor zoals @ThreadSafe, @NotThreadSafe en @Immutable om voor anderen duidelijk te maken in hoeverre de code rekening houdt met synchronization. Ook merkte hij op dat dit soort documentatie voor de JDK ook vaak ontbrak.
  • prefer immutable objects: objecten waarvan de state niet verandert hoeven niet gesynchroniseerd te worden. Hij raadde dan ook om velden zoveel final te maken.
  • find the serialisation: hiermee bedoelde hij niet het gebruik van Serialization klassen, maar het identificeren welke gedeeltes van je code serieel ipv. parallel uitgevoerd worden en vervolgens die stukken te verkleinen. Bijvoorbeeld door kleinere ‘synchronized’ blokken te gebruiken. Ook ging hij in op wat er door de compiler automatisch geoptimaliseerd kan worden.

Posted by Hans-Jürgen Jacobs at 11:46 on Saturday 30 September    Add 'Testing Concurrent Programs' site to delicious  Add 'Testing Concurrent Programs' site to technorati  Add 'Testing Concurrent Programs' site to digg  Add 'Testing Concurrent Programs' site to dzone

In this article, Brian Goetz, author of the recently-released <i>Java Concurrency in Practice</i>, explores some of the major issues in testing concurrent classes, and offers some techniques for constructing concurrent programs that make them easier to test. [theserverside]

Posted by Hans-Jürgen Jacobs at 11:18 on Monday 25 April    Add 'Five Favorite Features from 5.0' site to delicious  Add 'Five Favorite Features from 5.0' site to technorati  Add 'Five Favorite Features from 5.0' site to digg  Add 'Five Favorite Features from 5.0' site to dzone

A lot has been written about Java 5.0′s great new features, leaving David Flanagan to focus on this review of five of his favorite new API features: the Callable and Future interfaces, new APIs for varargs and autoboxing, new ability interfaces, the @Override annotation, and MatchResult. Read to the end, where David reveals a bonus sixth feature, a new language syntax supported by Java 5.0 but known to very few. David is the author of Java in a Nutshell, 5th Edition. [onjava.com]

Posted by Hans-Jürgen Jacobs at 19:00 on Sunday 3 April    Add 'Concurrent Programming with J2SE 5.0' site to delicious  Add 'Concurrent Programming with J2SE 5.0' site to technorati  Add 'Concurrent Programming with J2SE 5.0' site to digg  Add 'Concurrent Programming with J2SE 5.0' site to dzone

J2SE 5.0 provides a new way to multithread programming through the java.util.concurrent package, which offers a standard set of concurrency utilities. [java.sun.com]

Posted by Hans-Jürgen Jacobs at 12:57 on Thursday 24 March    Add 'Flexible Event Delivery with Executors' site to delicious  Add 'Flexible Event Delivery with Executors' site to technorati  Add 'Flexible Event Delivery with Executors' site to digg  Add 'Flexible Event Delivery with Executors' site to dzone

Event-handling is critical to any GUI application, and many developers know the hazards of making a method call to unknown or poorly behaved code from the event-dispatch thread. J2SE 5.0′s concurrency utilities offer more fine-grained control over how code executes. Andrew Thompson applies that to offer better ways to handle events. [onjava.com]

Posted by jcn at 14:01 on Thursday 3 March    Add 'Build Java Apps that Can Multitask' site to delicious  Add 'Build Java Apps that Can Multitask' site to technorati  Add 'Build Java Apps that Can Multitask' site to digg  Add 'Build Java Apps that Can Multitask' site to dzone

The java.util.concurrent package in J2SE 5.0 provides a new thread framework for handling many of the low-level details associated with creating, executing, and managing threads. Take a closer look at its important features. [devx.com]

Posted by Hans-Jürgen Jacobs at 21:16 on Sunday 19 December    Add 'Java Threads' site to delicious  Add 'Java Threads' site to technorati  Add 'Java Threads' site to digg  Add 'Java Threads' site to dzone

Here is a collection of the best articles on Java threading. Included are articles ranging from simple introductory tutorials to more advanced topics such as how to detect if your server application is leaking threads and introductions to Doug Lea’s… [Java Threads]


© 2020 Java Competence Network. All Rights Reserved.