Obviously, if each unit of work were two, or ten, or one hundred times as large as a single string method call, then the proportion of time spent in thread overhead would be correspondingly small.
显然,如果每个工作单元都相当于单个字符串方法调用的两倍、十倍或一百倍,那么所花费的线程开销比例就相应地更小了。
Once obtained, the connection should be cached and reused each time the same thread executes the evaluate method to perform a unit of work.
获得连接后,应该缓存连接,并在每次相同的线程执行evaluate方法来执行工作单元时进行重用。
First in time is calculated based on the time when the unit of work was created.
First in time根据工作单元创建的时间计算。
应用推荐