Thread safe cache updates in Java and Ada

Stephane Carrez has updated his Java 2 Ada blog with a post titled Thread safe cache updates in Java and Ada.

The problem is to update a cache that is almost never modified and only read in multi-threaded context. The read performance is critical and the goal is to reduce the thread contention as much as possible to obtain a fast and non-blocking path when reading the cache.

In this post, the obvious strengths of the Ada protected object are flexed. It is such an elegant construct, and really one of the _very_ nice things about Ada, especially in this multicore world.

Leave a Reply