1.同步容器,同步容器包括Vector和HashTable,是早期jdk的一部分。另一部分是同步包装类,以Collections.synchronizedxxx的工厂方法创建。
2.同步容器虽然是线程安全的,但是对于复合操作,有时你可能需要加上额外的客户端加锁进行保护,即对于使用这些容器的客户端代码,如果存在复合操作,还是可能存在风险。
3.例如check-and-act操作、循环中的元素操作...
分类:
编程语言 时间:
2014-05-07 08:33:56
阅读次数:
423
这个问题只要:
1. setsebool -P ftpd_disable_trans 1
2. service vsftpd restart
太纠结了,呵呵...
分类:
其他好文 时间:
2014-05-07 08:22:48
阅读次数:
291
雁字掠过愁转浓,
身不由己漂泊客,
相知相惜难相逢......
分类:
其他好文 时间:
2014-05-07 08:16:45
阅读次数:
194
这里是windows下 使用1.4.3版本时候出现的问题。
问题1
I:\git\orangle.github.io>jekyll serve --watch
Configuration file: I:/git/orangle.github.io/_config.yml
Source: I:/git/orangle.github.io
Destinat...
分类:
其他好文 时间:
2014-05-07 08:04:31
阅读次数:
486
在XP安装VS2005 SP1时,没有一点问题;;但是在Server版,就会... ...
出现问题:
Error 1718.File C:WINDOWS\Installer\3951d.msp did not pass the digital signature check. For more information about a possible resolution for this problem, see...
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Calendar;
import java.util.Locale;
import android.annotation.Su...
分类:
移动开发 时间:
2014-05-07 07:09:47
阅读次数:
418
import org.junit.Test;
public class Multiple {
public void printMultiple99() {
int i = 1;
for (; i < 10; i++)
for (int j = 1; j <= i; j++)
System.out.print(j + "*" + i + "=" + i * j + " ...
分类:
其他好文 时间:
2014-05-07 06:46:25
阅读次数:
359
最近看boost的时候总是遇见这个eval_if,不知道啥意思,就没法看下去了,比如
前篇文章boost::serialization 拆分serialize函数分析时就出现这样一段代码:
template
inline void split_member(Archive & ar, T & t, const unsigned int file_version)
{
typedef BOOS...
分类:
其他好文 时间:
2014-05-07 06:21:14
阅读次数:
556
AssertionError继承Error,提供了多个构造方法,代码如下:
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this w...
分类:
其他好文 时间:
2014-05-07 03:20:22
阅读次数:
579
using UnityEngine;
using System.Collections;
public class moive : MonoBehaviour {
public MovieTexture movTexture;
public GameObject moive_texture;
public GameObject quan_bt;
public GameObject...
分类:
其他好文 时间:
2014-05-07 03:13:16
阅读次数:
426