threading for notification queue