国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開(kāi)通VIP
寫操作xml文件,進(jìn)程和線程同時(shí)寫
            Mutex WriteMutex = new Mutex(false, "Write");
            WriteMutex.WaitOne();
            DateTime dttime = System.DateTime.Now;
            Response.Write(dttime);
            int i = 0;
            lock (this)
            {
                 while (System.DateTime.Now<dttime.AddSeconds(5))
                 {
                     XmlDocument domtest = new XmlDocument();
                     domtest.Load(@"201012.xml");
                     XmlElement test = domtest.CreateElement("test");
                     i = i + 1;
                     test.SetAttribute("datetime", i.ToString());
                     domtest.DocumentElement.AppendChild(test);
                     domtest.Save(@"201012.xml");
                 }
            }
            WriteMutex.ReleaseMutex();
            Response.Write("<br/>"+Base.GetNowTime());
            return;
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
C#中使用Monitor類、Lock和Mutex類來(lái)同步多線程的執(zhí)行
線程學(xué)習(xí)筆記
各種Mutex(互斥量)的區(qū)別(轉(zhuǎn)載)
進(jìn)程、線程間通信
進(jìn)程與線程的一個(gè)簡(jiǎn)單解釋
進(jìn)程管理
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服