# Is it necessary for sleep to allocate?

**URL:** <https://discourse.julialang.org/t/is-it-necessary-for-sleep-to-allocate/77795>\
**Category:** Performance\
**Tags:** multithreading\
**Created:** [March 12, 2022, 3:32pm UTC](https://discourse.julialang.org/t/is-it-necessary-for-sleep-to-allocate/77795 "2022-03-12T15:32:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![yashi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yashi/32/19448_2.png) [@yashi](https://discourse.julialang.org/u/yashi)\
**Post date:** [March 12, 2022, 5:05pm UTC](https://discourse.julialang.org/t/is-it-necessary-for-sleep-to-allocate/77795/3 "2022-03-12T17:05:39Z")

</div>

How about using `Libc.systemsleep()`?  
[https://docs.julialang.org/en/v1/base/libc/#Base.Libc.systemsleep](https://docs.julialang.org/en/v1/base/libc/#Base.Libc.systemsleep)

![image](https://global.discourse-cdn.com/julialang/original/3X/5/4/54bcfdf68b65c86d0e591631016939abc550d8b3.png)

This is on Windows.

---

_[View the full topic](https://discourse.julialang.org/t/is-it-necessary-for-sleep-to-allocate/77795)._
