Fixed the throughput wasting memory and packet loss issues. Fixed the throughput crash bug because of using the Mutex.