booleanTestAndSet (boolean *target){boolean rv = *target;*target = TRUE;return rv;}do{while(TestAndSet(&lock))criticalsection;lock= FALSE;remaindersection;}while (TRUE);
汪汪一只猫
动漫人物
相关分类