critical section
發(fā)布時間:2025-08-18 | 來源:互聯(lián)網(wǎng)轉(zhuǎn)載和整理
網(wǎng)絡(luò)關(guān)鍵段; 危險截面; 臨界區(qū)間; 臨界區(qū); 臨界段
雙語例句
Let the critical section of code complete its job. 使代碼的關(guān)鍵部分完成其工作。
For a method that enters a critical section, validate that the method does not return before it is released. 對于進(jìn)入關(guān)鍵部分的方法,驗證該方法未在釋放前返回。
Make sure this copying happens inside the critical section by holding a spinlock. 確保這個拷貝是在一個具有自旋鎖的臨界區(qū)中發(fā)生的。
If the underlying function is in the middle of a critical section and a signal is generated and handled, this can cause the function to be non-reentrant. 如果底層的函數(shù)處于關(guān)鍵部分,并且生成并處理信號,那么這可能會導(dǎo)致函數(shù)不可重入。
Critical sections operate on the principle of mutual exclusion ( when a thread is within a critical section, all other threads are excluded from entering). 臨界段操作時堅持互斥鎖(mutualexclusion)原則(當(dāng)一個線程處于臨界段中時,其他所有線程都不能進(jìn)入臨界段)。
To combat the issue of race conditions, the concept of a critical section was created. 臨界段概念是為解決競態(tài)條件問題而產(chǎn)生的。
If a writer has the lock, no reader is allowed to enter the critical section. 如果執(zhí)行寫操作的線程持有此鎖,則臨界段不能由其他線程讀取。
Before entering the critical section, the lock() method of the ReentrantLock object is invoked to try and obtain the lock. 在進(jìn)入關(guān)鍵部分之前,調(diào)用ReentrantLock對象的lock()方法,嘗試并獲得鎖。
If only a reader has the lock, then multiple readers are permitted in the critical section. 如果一個執(zhí)行讀操作的線程持有此鎖,那么多個讀線程都可以進(jìn)入臨界段。
A critical section is a portion of code that is protected against multiple access. 一個臨界段是一段不允許多路訪問的受保護(hù)的代碼。
The ruling paradigm for managing shared state in the Java language and others consists of mutable state protected by locks or other critical section markers. 用Java語言和其他語言管理共享狀態(tài)的主導(dǎo)范例包括由鎖或其他關(guān)鍵節(jié)標(biāo)記保護(hù)的可變狀態(tài)。
Atomic means that the critical section is contained within the API function. 原子意味著臨界段被包含在API函數(shù)中。
Is your code re-entrant or do you have critical section that must be locked? 您的代碼是可重入的,還是設(shè)置必須鎖定的臨界區(qū)呢?
This allows us to minimize the amount of work in the critical section which should bias the measurement towards the cost of synchronization. 這樣我們可以將臨界區(qū)內(nèi)的工作最小化,進(jìn)而重點測量同步的開銷。
Also, the administrator can check for dead applications or those that are reporting they are in a critical section of the program, like long updates to reporting. 同樣,管理員可以檢查無響應(yīng)的應(yīng)用程序,或者那些報告說正處于運行程序臨界段,如長時間報表更新。
These methods do not take any locks; they inform the CLR that code is executing in a critical section and aborting the thread could leave shared state inconsistent. 這些方法不使用任何鎖;它們通知clr代碼正在臨界區(qū)中執(zhí)行,中止線程可能會使共享狀態(tài)不一致。
No other thread can enter the critical section unless it is executing the instructions in the critical section using a different locked object. 其他任何線程都不能進(jìn)入臨界區(qū),除非它使用其他鎖定對象執(zhí)行臨界區(qū)中的指令。
A critical section object cannot be moved or copied. 一個臨界區(qū)對象不能移動或復(fù)制。
A process wishing to enter a critical section will call P on the relevant semaphore; 一個想進(jìn)入臨界區(qū)的進(jìn)程會調(diào)用信號量的P函數(shù);
Methods to mark the beginning and end of a critical section. 方法標(biāo)記臨界區(qū)的開頭和結(jié)尾。
The process is responsible for allocating the memory used by a critical section object, which it can do by declaring a variable of type CRITICAL_SECTION. 這個進(jìn)程負(fù)責(zé)分配一個臨界區(qū)對象使用的內(nèi)存,它可以通過聲明類型的CRITICALSECTION的變量使用的內(nèi)存。
Then net effect is that we will end up with a longer critical section which may result in other threads stalling and reduced throughput. 這種做法帶來的真正效果是我們獲得了一個更長的臨界區(qū),它可能導(dǎo)致其他線程受到拖延從而降低吞吐量。
The threads of a single process can use a critical section object for mutual-exclusion synchronization. 單個進(jìn)程的線程可以使用一個互斥同步臨界區(qū)對象。
Resolution: Related critical section synchronizations were reorganized to remove the race condition. 決議:相關(guān)關(guān)鍵路段同步改組,以消除種族的條件。
By strict deduction in mathematics, the mathematical equation of critical section and drawing method is established and elaborated in this paper. 通過分析和數(shù)學(xué)推導(dǎo),建立了臨界截平面的數(shù)學(xué)方程,確立了相應(yīng)的平面作圖方法,并對其應(yīng)用進(jìn)行了詳細(xì)敘述。
Data exchange among threads was realized under the protection of critical section. 系統(tǒng)線程間的數(shù)據(jù)交換在臨界區(qū)保護(hù)模式下實現(xiàn)。
And then, some synchronization techniques, which are semaphore, mutex, event and critical section used in VC++ and synchronized key word used in JAVA, are introduced. 介紹了在VC++中用信號量、互斥體、事件和臨界區(qū)四種對象實現(xiàn)和在JAVA中用Synchronized關(guān)鍵字實現(xiàn)的同步技術(shù)。最后,對改進(jìn)多線程應(yīng)用的性能和安全提出了一些策略。
Analysis and research on the critical section of oval cone 橢圓錐臨界截平面的分析與研究
Based on the stress ***ysis on the critical section, this paper presents a simple calculation method. 基于對最不利截面的應(yīng)力分析,提出了一種簡便、快速的懸臂長度計算方法。
In the transplantation, propose a new method to enter and exit critical section. This provides a great convenience to the followed software development. ( 3) Firstly, ***yze the basic principle of TCP/ IP stack, according to TCP/ IP document. 在移植時,采用新的進(jìn)入和退出臨界區(qū)的方法,為后續(xù)的軟件開發(fā)提供了很大的便利。(3)先根據(jù)TCP/IP文檔,分析TCP/IP協(xié)議棧的基本原理。