mutex什么意思(mutex中文翻譯,mutex是什么意思,mutex發(fā)音、用法及例句)
1、mutex
mutex發(fā)音
英: 美:
mutex中文意思翻譯
常用釋義:互斥
n.互斥;互斥元,互斥體;互斥量
mutex雙語(yǔ)使用場(chǎng)景
1、The name of the system mutex whose access control security rules are to be retrieved.───要檢索其訪(fǎng)問(wèn)控制安全性規則的系統mutex的名稱(chēng)。
2、The code between the lock and unlock calls to the mutex, is referred to as the critical section.───在打開(kāi)和關(guān)閉互斥調用之間的代碼稱(chēng)為臨界域。
3、Only one task may hold the mutex at a time, and only this task can unlock the mutex.───一次只能有一個(gè)任務(wù)持有互斥鎖,并且只有這個(gè)任務(wù)可以解鎖互斥鎖。
4、If the calling thread has no ownership of this mutex, this function fails.───如果調用線(xiàn)程并不擁有這個(gè)互斥信號量,那么這個(gè)函數的執行將會(huì )失敗。
5、Also called a mutex.───也叫互斥信號。
6、Therefore, at the end of it all, you now have two reader threads, both waiting on the condition variable, and the mutex is unlocked.───因此,最后兩個(gè)讀線(xiàn)程都等待條件變量,互斥鎖沒(méi)有被鎖住。
7、The slot's connection is checked to see if it is blocked or disconnected, and then the connection's mutex is unlocked.───插槽的連接被檢查,看它是否被阻塞或斷開(kāi),然后,連接的互斥體被解鎖。
8、Then, when a thread is ready to terminate, it locks the mutex, decrements threadcount, and unlocks the mutex.───當一個(gè)線(xiàn)程準備終止時(shí),它再次鎖定互斥量,減量threadcount,然后解鎖互斥量。
9、Fear not, you'll still have access to the raw mongrel request if you want to do fancy stuff like streaming or deferred rendering outside the mutex.───不用害怕,如果您想在互斥以外做一些奇特的事情,比如流處理或延遲呈現,您仍然可以訪(fǎng)問(wèn)原始的 mongrel 請求。
mutex相似詞語(yǔ)短語(yǔ)
1、the mummy───木乃伊(電影名);盜墓迷城; [電影]木乃伊
2、dissimulation synonyms───偽裝同義詞
3、pitches in music───音高
4、demurrer pdf───異議pdf
5、forasmuch definition───for asmuch定義
6、tall trees catch much wind───樹(shù)大招風(fēng)
7、smuggled define───走私定義
8、peumus boldus───損失粗體
9、mud brick───泥磚
10、disuse muscle weakness───廢用性肌無(wú)力
2、java中,10個(gè)線(xiàn)程并發(fā)修改1個(gè)大數組(億級別),用1個(gè)mutex怎么設計最高效安全?
設想這樣一個(gè)全局擴展鎖對象,它控制一個(gè)地址集,可以進(jìn)行append和delete操作,它在append操作的時(shí)候會(huì )檢測自己的數據集是否有重復數據,只要重復就lock。delete操作不做限制。這十個(gè)線(xiàn)程,每次需要訪(fǎng)問(wèn)大數組式,把索引append進(jìn)擴展鎖,用后就delete這個(gè)索引。
進(jìn)一步,擴展這個(gè)鎖對象,增加一個(gè)鎖定訪(fǎng)問(wèn)方法,數組索引和一個(gè)lamda函數作為參數,專(zhuān)門(mén)干append索引,執行lamda,delete索引這種勾當。主要是防止自己忘了delete。
再進(jìn)一步,提供調試功能,在鎖定訪(fǎng)問(wèn)方法內部,在append前向系統報告時(shí)間標簽,執行時(shí)報告一次,解鎖報告一次。這樣,你就可以獲取性能報告了。
我想不出還能不能進(jìn)一步了,就這樣吧。
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。