added inter-thread communication demo