ThreadPool这个类,我想在里面加一个ChangePriority()这个方法。
可以写一个类譬如说PrioriThreadPool去取代ThreadPool.
也可以写一个类继承ThreadPool这个类。这两种方式哪一种好?可以说的具体点吗?