Search |
||
Reinventing the Wheel to Run Myself OverPosted by editor on October 23, 2008 at 8:07 AM PDT
Getting thread pools right... really right Have you ever noticed that a lot of people who present the idea of pools in the abstract -- whether for database connections, threads, whatever -- seem to implicitly assume that the demand for the pooled resource will never exceed the number of available resources? In other words, the first time someone explains this to you, they show you why it works when two or three database connections are needed at the same time, but they're not as eager to think through what happens when all 50 connections are in use, and request number 51 comes in. What do you do when this happens? Do you throw a "try again later" kind of exception? Do you block the caller (and blithely assume the caller can stand being blocked without ill effect on the rest of the system)? Do you work out some means of letting the caller decide what to do? In our Feature Article, Amir Kirsh takes on this problem for thread pools in Creating a NotifyingBlockingThreadPoolExecutor:
Concluding that what he needs is a In Java Today, the NetBeans IDE 6.5 Release Candidate is now available for download. New features in 6.5 include PHP support, improved JavaScript support, more database features (SQL history, SQL completion, results viewing, and editing improvements), support for Nimbus in the GUI builder, single test method support for JUnit, and a redesign of the debugger's Step Into features. It also integrates with new versions of key technologies, like GlassFish Enterprise Server v3 Prelude. Also, check out the features from the first two days of the NetBeans 10th Birthday Celebration. In an article adapted from a presentation at Sun Tech Days in Sydney, Chuk-Munn Lee of Sun Microsystems Troubleshoots Java SE 6 Deployment. The article explores ways to troubleshoot running Java applications, with a focus on Java SE 6, covering memory management, command-line and visual tools, common problems and their causes, and more. Sun is sponsoring a contest for independent developers and students working with Project Darkstar, the Java-based MMO gaming back-end engine. The Project Darkstar Developer Challenge is looking for the best applications and utilities for Project Darkstar and offers some enticing awards. Grand prize winners get a 2009 Game Developer Conference (GDC) pass and an opportunity to show their work in a GDC presentation, plus cash for travel and a feature on the Project Darkstar site. Entrants must be members of the Project Darkstar community, and must submit their entries between November 17, 2008 and January 19, 2009. In today's Weblogs, John Ferguson Smart considers approaches for Software development in troubled times. "Nowadays, more than ever, developers need to be productive. Ultra-productive. Organizations need to optimize the added value they get out of their development projects, and should be actively looking for ways to do it." In Enabling performance feature in jMaki, Carla Mott writes that "jMaki 1.8.0 release contains performance enhancements which help improve page load times." Finally, in ASM and invokedynamic, Rémi Forax discusses how "ASM now supports the new invokedynamic opcode." In today's Forums, Qunhuan Mei hopes for LWUIT guidance in the thread RE: Roadmap "Hello LWUIT team, would also like to echo this request. "Roadmap" would be very important for anyone who are seriously consider using LWUIT for commercial work. Currently we know it works pretty good on J2ME. It works as it is for Blackberry. Will the LWUIT be able to work in any other platform, or is it true the LWUIT will not work on Android ...? Would anyone from LWUIT shed some light on this please?"
Finally, Current and upcoming Java Events :
Registered users can submit event listings for the java.net Events Page using our events submission form. All submissions go through an editorial review before being posted to the site. Archives and Subscriptions: This blog is delivered weekdays as the Java Today RSS feed. Also, once this page is no longer featured as the front page of java.net it will be archived along with other past issues in the java.net Archive. Getting thread pools right... really right »
Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|