# %semget() function

The %semget() function creates a semaphore
set.

**For Windows:**Not Supported

## Syntax

```
value = %semget(key, nsems, semflg)
```

## Description

Valid values for *key* and *semflg* are defined in the files: sem.h and ipc.h. See the UNIX system
documentation.

## See also

- [%semctl() function](https://d3codex.com/pickbasic-flashbasic/percent-semctl-function/)
- [%semop() function](https://d3codex.com/pickbasic-flashbasic/percent-semop-function/)
- [cfunction statement](https://d3codex.com/pickbasic-flashbasic/cfunction-statement/)

---
Source: https://d3codex.com/pickbasic-flashbasic/percent-semget-function/ - part of the D3Codex reference.
