@Override
	public void run() {
		try {
			for (int i = 0; i < 20; i++) {
				// 类级别对代码块加锁
				synchronized (StaticVariableSyn.class) {
					staticInt++;
					if (staticInt == 10) {
						Thread.sleep(5000);
					}
					System.err.println("[" + Thread.currentThread().getId() + "]当i=" + i + "获取staticInt 的值:"
							+ staticInt);
				}
			}
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}