{{theTime}}

Search This Blog

Total Pageviews

How to synchronize TreeMap?

TreeMap implementation is not synchronized.   If multiple threads access TreeMap and atleast one thread updates the TreeMap, it must be synchronized externally.  If no external synchronization, use 

 SortedMap m = Collections.synchronizedSortedMap(new TreeMap(...));

No comments:

Top LLMs in 2025

Navigating the AI Landscape: Key Differences Between Top LLMs in 2025 As of late September 2025, the large language model (LLM) arena is m...