printf("Write thread %d sents the writing require.\n",m_serial);
//等待资源
EnterCriticalSection(&RP_Write);
//写文件
printf("Writer thread %d begins to write to the file.\n",m_serial);
Sleep(m_persist);
//退出线程
printf("Write thread %d finished writing to the file.\n",m_serial);
//释放资源
LeaveCriticalSection(&RP_Write);
}