[05/Oct/2014:20:50:37 +0800] - ERROR<5135> - Resource Limit - conn=-1 op=-1 msgId=-1 - Memory allocation error calloc of 9420 bytes failed; errno 12The server has probably allocated all available virtual memory. To solve this problem, make more virt…
java同步synchronized volatile仅仅用来保证该变量对所有线程的可见性,但不保证原子性. 看下面的这段代码: /** * * @author InJavaWeTrust * */ public class CountVolatile implements Runnable { public static CountVolatile instance = new CountVolatile(); public static volatile int i = 0; public…