# How to process a dictionary with multi tasking?

**URL:** <https://discourse.julialang.org/t/how-to-process-a-dictionary-with-multi-tasking/122186>\
**Category:** New to Julia\
**Tags:** multithreading\
**Created:** [November 2, 2024, 8:24pm UTC](https://discourse.julialang.org/t/how-to-process-a-dictionary-with-multi-tasking/122186 "2024-11-02T20:24:25Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mrufsvold](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrufsvold/32/31600_2.png) [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Post date:** [November 3, 2024, 12:31pm UTC](https://discourse.julialang.org/t/how-to-process-a-dictionary-with-multi-tasking/122186/9 "2024-11-03T12:31:40Z")

</div>

If you’re writing to the dictionary, no. But concurrent reads should be fine, unless I’m deeply misunderstanding how Dict is implemented.

Edit:

> [@Is reading from a dict always threadsafe?](https://discourse.julialang.org/t/is-reading-from-a-dict-always-threadsafe/87287/2):
>
> In general, reads to Dicts (and almost any data structure will be thread safe) if there aren’t any writes.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-process-a-dictionary-with-multi-tasking/122186)._
