# Is garbage collection thread safe?

**URL:** https://discourse.julialang.org/t/is-garbage-collection-thread-safe/13006
**Category:** General Usage
**Created:** [August 7, 2018, 10:11pm UTC](https://discourse.julialang.org/t/is-garbage-collection-thread-safe/13006 "2018-08-07T22:11:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Juser](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@Juser](https://discourse.julialang.org/u/Juser)
#### Post date: [August 7, 2018, 10:11pm UTC](https://discourse.julialang.org/t/is-garbage-collection-thread-safe/13006/1 "2018-08-07T22:11:11Z")

</div>

Is it safe to use gc() within a Threads.@threads for loop?

---

<div class="post-metadata">

### Author: ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)
#### Post date: [August 7, 2018, 10:20pm UTC](https://discourse.julialang.org/t/is-garbage-collection-thread-safe/13006/2 "2018-08-07T22:20:20Z")

</div>

Yes. Fwiw that isn’t really what threadsafety of GC usually mean though…
