sem problem

try to solve problem of stopping semaphores
change num of semset to 3 (from 4)
need to test