package mthread;_x000D_
_x000D_
public class SynchronizeFbLike {_x000D_
_x000D_
	public static void main( String[] args ) {_x000D_
_x000D_
		/* Facebook Page: Everest, Current Likes: 500 */_x000D_
		final FacebookLike everestFbPagePiclike = new FacebookLike( 500 );_x000D_
_x000D_
		Thread user1 = new Thread( ) {_x000D_
			public void run( ) {_x000D_
				everestFbPagePiclike.plusOne( );_x000D_
			}_x000D_
		};_x000D_
		Thread user2 = new Thread( ) {_x000D_
			public void run( ) {_x000D_
				everestFbPagePiclike.plusOne( );_x000D_
			}_x000D_
		};_x000D_
		Thread user3 = new Thread( ) {_x000D_
			public void run( ) {_x000D_
				everestFbPagePiclike.plusOne( );_x000D_
			}_x000D_
		};_x000D_
		Thread user4 = new Thread( ) {_x000D_
			public void run( ) {_x000D_
				everestFbPagePiclike.plusOne( );_x000D_
			}_x000D_
		};_x000D_
_x000D_
		/* User1,2,3,4 hit like button in Everest Facebook Page */_x000D_
		user1.start( );_x000D_
		user2.start( );_x000D_
		user3.start( );_x000D_
		user4.start( );_x000D_
_x000D_
	}_x000D_
}_x000D_

/* Facebook Page: Everest, Current Likes: 500 */
package mthread;_x000D_
_x000D_
public class SynchronizeFbLike {_x000D_
_x000D_
	public static void main( String[] args ) {_x000D_
_x000D_
		/* Facebook Page: Everest,<SUF>*/_x000D_
		final FacebookLike everestFbPagePiclike = new FacebookLike( 500 );_x000D_
_x000D_
		Thread user1 = new Thread( ) {_x000D_
			public void run( ) {_x000D_
				everestFbPagePiclike.plusOne( );_x000D_
			}_x000D_
		};_x000D_
		Thread user2 = new Thread( ) {_x000D_
			public void run( ) {_x000D_
				everestFbPagePiclike.plusOne( );_x000D_
			}_x000D_
		};_x000D_
		Thread user3 = new Thread( ) {_x000D_
			public void run( ) {_x000D_
				everestFbPagePiclike.plusOne( );_x000D_
			}_x000D_
		};_x000D_
		Thread user4 = new Thread( ) {_x000D_
			public void run( ) {_x000D_
				everestFbPagePiclike.plusOne( );_x000D_
			}_x000D_
		};_x000D_
_x000D_
		/* User1,2,3,4 hit like button in Everest Facebook Page */_x000D_
		user1.start( );_x000D_
		user2.start( );_x000D_
		user3.start( );_x000D_
		user4.start( );_x000D_
_x000D_
	}_x000D_
}_x000D_
