0

4

回答

370 浏览

volatile有关的问题;java concurrency in practice[已解决]10

问题1: java concurrency in practice中: “线程A向volatile变量(设为aa)写入值”,这里线程A修改变量aa的内部状态值,还会有后面的效果吗? 问题2: 下面这段代码咋运行可以看到一直循环运行的结果?jvm参数加了-server也木有用。 public class TestVolatile { private static boolean ready; ...

2013年2月04日 17:04
0

0

回答

3889 浏览

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner[已解决]5

[com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource:462] Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDe ...

2012年5月29日 10:40
0

3

回答

217 浏览

请教java concurrency in practice 读书困惑-list同步问题[已解决]5

public class ListHelper<E> { public List<E> list = Collections.synchronizedList(new ArrayList<E>()); ... public synchronized boolean putIfAbsent(E x) { boolean absent = !list.contain ...

2012年5月17日 17:48

本周活跃投票用户

最新评论

Global site tag (gtag.js) - Google Analytics