互斥算法

mutual exclusive algorithm