key_t key : - A unique key identifier used to identify the semaphore set . The key is crucial for determining whether ` semget()` creates a new semaphore set or returns the identifier of an existing set . the key is usually generated using the ftok() function. which converts file path and a project into a key . This ensures that the same key is generated by different processes that use the same file and project ID
key: A unique identifier used to identify the semaphore set. If this key matches an existing semaphore set, that set is returned. If the key is `IPC_PRIVATE`, a new set is always created.