package com.example.sync;

public class StaticWorker extends Thread {

	// no need to create StaticSharedResource object since it's going to 
	// call the static method increment()
	
	@Override
	public void run() {
		// this thread will try to update the shared resource
		// by calling the increment()
		for (int i = 0; i < 5; i++) {
			StaticSharedResource.increment();
		}
	}
}
