semaphore array creation