`semget()` function creating and accessing semaphore sets
function : `semget(key_t key, int nsems, int semflg)`
The `semget()` function is used to either create a new semaphore set or obtain the identifier of an existing semaphore set.
key : A unique identifier used to identify the semaphore ser. If this key matches an existing semaphoreset , that set is returned . If the key is IPC_PRIVATE , a new set is always created.
nsems: the number of semaphores to include in the set this value is only relevant when creating a new semaphore set.
semflg : Flags that control the operation this include read write permissions