@Override
	public void run() {
		while (TestThreadTerminal.flag) {
			Thread thread = new Thread(new Runnable() {
				@Override
				public void run() {
					while(TestThreadTerminal.flag){
						System.out.println("***");
						try {
							Thread.sleep(1000);
						} catch (InterruptedException e) {
							// TODO Auto-generated catch block
							e.printStackTrace();
						}
					}
				}
			});
			thread.start();
			try {
				thread.join();
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
				System.out.println("logggg");
				TestThreadTerminal.flag = false;
			}
			
		}
		
	}