JDK 1.4的执行器和Future类等效项,以实现执行超时 [英] Executor and Future class equivalents for JDK 1.4 to achieve execution timeouts

查看:104
本文介绍了JDK 1.4的执行器和Future类等效项,以实现执行超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在与JDK 1.4兼容的框架,该框架可以通过线程管理模拟与JDK 5中的ExecutorFuture相同的执行超时功能?

Is there a framework that is compatible with JDK 1.4 that can simulate the same execution timeout functionality via thread management as in Executor and Future found in JDK 5?

推荐答案

查看Java5之前的版本

Check out the pre-Java5 util.concurrent package. It's what the new concurrency classes were based on.

这篇关于JDK 1.4的执行器和Future类等效项,以实现执行超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆