process critical section protection