@Override
	public void run() {

		while(flag){
			synchronized (obj) {
				if(count>0){
					try {
						System.out.println("Thank you! You buy one ticket----Current Count: " +(--count));
						Thread.sleep(10);
					} catch (InterruptedException e) {
						e.printStackTrace();
					}
				}else {
					flag = false;
				}
				
			}
		}
	}