sem empty 1 sem full 0 sem mutex 1 C wait full P wait empty P wait mutex P signal mutex P signal full P wait empty C wait mutex