tutorial: how to "subscribe" to a thread