- 浏览: 121729 次
- 性别:
- 来自: Singapore
文章分类
- 全部博客 (112)
- Tiger Thread (18)
- Perforce (6)
- Spring (5)
- maven (3)
- log4j (3)
- Quartz Scheduler (4)
- unix and linux (12)
- hibernate (3)
- Enum (1)
- Futures and Options (1)
- Market Making (2)
- Java Basic (11)
- Tibco EMS (3)
- F I X message (5)
- equity derivative (2)
- Sybase (3)
- XML (1)
- JUnit (2)
- J A X B 2.0 (1)
- N I O (1)
- windows batch file (1)
- Cruise Control (1)
- util Class (5)
- ant (1)
- JMS (1)
- profiling (0)
- Sql Server (6)
- GXT (2)
- eclipse (1)
- Generics (1)
- Tibco RV (3)
- Autosys (0)
- Message (1)
最新评论
-
houzhe11:
<property name="proxyTa ...
AOP usage -- BeanNameAutoProxyCreator usage
ExecutorService exec = Executors.newCachedThreadPool();
for(int i = 0; i < 10; i++)
{
exec.execute(new Entrance(i));//obviously Entrance is another class which implements Runnable
}
TimeUnit.SECONDS.sleep(3); // this sleep code is very elegant!
exec.shutdown();
if(!exec.awaitTermination(250, TimeUnit.MILLISECONDS))
{
print("Some tasks were not terminated");
}
Some points to explain:
1)ExecutorService.awaitTermination() waits for each task to complete, and if they all complete before the timeout value, it returns true, otherwise it returns false to indicate that not all tasks have completed.
发表评论
-
javadoc for Cyclic Barrier
2009-04-24 12:48 850java.util.concurrent.CyclicBarr ... -
Delayed interface and Delay Queue
2009-04-22 17:42 1001/** * A standard implementati ... -
Count Down Latch example code
2009-04-22 10:38 1095Key point : 1) 1 task is co ... -
3 ways to break dead lock
2009-04-21 17:30 7061) supply special resources. ... -
Blocking Queue Usage
2009-04-20 11:21 7993 implementations: LinkedBlocki ... -
The usage of Lock and Condition
2009-04-18 12:31 1041//: concurrency/waxomatic2/WaxO ... -
Re entrantLock usage
2009-04-15 17:15 1292a thread can be really interru ... -
new interrupt in java5
2009-04-15 12:08 634In Java 5, Thread.interrupt() i ... -
interrupt
2009-04-15 10:57 7661) Each thread has a boolean in ... -
Thread Local usage
2009-04-14 17:46 761ThreadLocal usage – from Javado ... -
Timer TimerTask usage
2009-04-14 12:03 688Timer typical usage new Tim ... -
wait, notify及线程通讯机制
2009-02-26 22:42 8091) wait(), notify() 方法被调用的时候,只要 ... -
Java Thread programming basical knowledge
2009-02-26 22:40 960yield() : Give a hint to the th ... -
Count Down Latch explanation
2008-10-02 10:29 897Very important paragraph on how ... -
Scheduled Executor Service
2008-07-22 11:27 1064Executor can return Executor, E ... -
Executor usage
2008-07-22 11:04 845Executor is used to arrange thr ... -
Callable Usage
2008-07-22 10:24 888The important thing need to loo ...
相关推荐
用户应用new SparkContext后,集群就会为在Worker上分配executor,但是增加executor的时候需要考虑好内存消耗,因为一台机器的内存分配给越多的executor,每个executor的内存就越小,以致出现过多的数据spill over...
hadoop自带的Container-executor在配置yarn-kerberos时存在问题,以及在配置cgroup时需要把container-executor.cfg的上级目录拥有者均改为root,带来不便。 所以需要重新编译Container-executor,这边提供重新编译好...
本人自定义纯手写的线程池代码功能,代码注释简单明了,开箱即用,即不用做任务修改即可run起来。希望可以帮助大家!
catchnerandi / generic-executor-service:最新 0.7.x 抓斗者/通用执行器服务:0.2 0.7.3 keepnsandbox / generic-executor-service:0.3 安装 通用执行者服务可以作为的一部分进行安装。 在您的Kubernetes集群...
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
高效率 快捷操作
官方版本,亲测可用
官方版本,亲测可用
官方版本,亲测可用
FANUC C Language Executor
mybatis中的sqlsession--executor实现 mybatis中的sqlsession--executor实现
hadoop自带的Container-executor在配置yarn-kerberos时存在问题,这边给出编译后的Container-executor,默认加载配置文件路径/etc/container-executor.cfg,大家不用再重新编译了
基于Android开发的Executor线程池示例
该文档详细记录了Executor框架结构、使用示意图、ThreadPoolExecutor使用示例、线程池原理分析、几种常见线程池(FixedThreadPool、SingleThreadExecutor、CachedThreadPool)的详解以及线程池大小确定等内容
非常好的Java并发框架Executor图例,结构清晰,继承关系清楚。
executor 查找工具,方便查找应用软件,可以自定义文件快捷键。
executor快速启动工具,超炫,实用
NULL 博文链接:https://jsx112.iteye.com/blog/865884