Jmeter-Critical Section Controller(臨界區控制器)


     The Critical Section Controller ensures that its children elements (samplers/controllers, etc.) will be executed by only one thread as a named lock will be taken before executing children of controller. 

     Critical Section Controller(臨界區控制器),確保它的子元素(samplers /控制器等)在執行控制器的子程序之前只執行一個線程作為指定的鎖。

名稱:

注釋:

Lock name:鎖的名稱,最好作為唯一值。

按照上圖設置線程組線程數為5,http請求運行,觀察結果樹

仔細觀察,1號請求同時執行了5個,一個3號請求必須要等一個2號請求結束后才執行,並且2號請求不是同時執行的,就代表2號請求在同一時間只能執行一個


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM