[Java] Thread class - Why not implement Comparable interface?
That sums it up. Why the bloody hell does the Thread class not already implement the comparable interface to compare threads based on priority?
It seems common sense that one would want to use one of the built in data structures to store Threads sorted based on priority.
BETTER YET... why the hell does Threadgroup not already provide this functionality? It doesn't give the fine grained storage that one might want from a Thread data structure.
It just seems silly considering how well implemented and convenient all the other classes are. Like strings hash the actual value of the string and not the string object AUTOMATICALLY instead of hashing the object like happens to every other object in Java unless the hash function is overriden.
My pet peeve for the day.
__________________
"It better be funny"
|