Conditions For Critical Section Problem