Use timer to call the output change callback of the sub-thread.