42
42
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
The old Hashtable class is synchronized, yet most are used by a single thread only. Thus, the new Collections classes are not syncrhonized themselves, providing better performance. If you need thread-safety, you can wrap them using Collections.synchronizedList/Map/Set() or the even newer ConcurrentHashMap.Originally posted by Jeroen Wenting:
And don't use Hashtable, use HashMap instead. It is a lot more CPU friendly.
Originally posted by kri shan:
How HashMap is CPU friendly ??
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |