Semaphores sem_wait sem_post problem

hallo!
if there are many processes running and I initialize the semaphore like this:

my_sem = sem_open(SEM_NAME, O_CREAT | O_RDWR,
S_IRUSR | S_IWUSR, 10);
(the last argument is 10)

and then i use
sem_wait(my_sem);
sleep(5);
sem_post;

Will 10 processes be able to access the critical section on the same time and sleep or only one process can do that?
And if not how is it possible to make max 10 processes sleep at the same time?

eleni matsouka
asoe pliroforiki athens
profesor manolis giannakoudakias

Please post in the Homework forum using the supplied template.