public static void main(String[] args) {
		final SignalMock signalMock = new SignalMock();
		
		//Thread 1 等待另一线程设置signal
		new Thread(){
			public void run(){
				logger.info("Thread 1 start run");
				//线程一直在运行
				while(!signalMock.isProcess()){
					logger.info("Thread 1 all running");
					if(signalMock.isProcess()){
						logger.info("Thread 1 get signal!");						
					}
					
				}
			}
		}.start();
		
		new Thread(){
			public void run(){
				try {
					Thread.sleep(1000);
				} catch (InterruptedException e) {
					logger.error("sleep error!", e);
				}
				signalMock.setProcess(true);
				logger.info("give Thread 1 the signal!");
			}
		}.start();
	}