---
title: IOSleep
framework: kernel
role: symbol
role_heading: Function
path: kernel/1575320-iosleep
---

# IOSleep

Sleep the calling thread for a number of milliseconds.

## Declaration

```occ
void IOSleep(unsigned int milliseconds);
```

## Parameters

- `milliseconds`: The integer number of milliseconds to wait.

## Discussion

Discussion This function blocks the calling thread for at least the number of specified milliseconds, giving time to other processes.

## See Also

### Sleep

- [IODelay](kernel/1575328-iodelay.md)
- [IOPause](kernel/1575333-iopause.md)
- [IOSleepWithLeeway](kernel/1575303-iosleepwithleeway.md)
