thread locking for sender and processor optimized