Thread server for the messenger system