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號請求在同一時間只能執行一個