# Multithreading with seperate caches for each thread?

**URL:** <https://discourse.julialang.org/t/multithreading-with-seperate-caches-for-each-thread/116441>\
**Category:** General Usage\
**Created:** [June 30, 2024, 7:48pm UTC](https://discourse.julialang.org/t/multithreading-with-seperate-caches-for-each-thread/116441 "2024-06-30T19:48:53Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [June 30, 2024, 9:04pm UTC](https://discourse.julialang.org/t/multithreading-with-seperate-caches-for-each-thread/116441/8 "2024-06-30T21:04:25Z")

</div>

An example of the same idea but without macros can be seen here: [PSA: Thread-local state is no longer recommended; Common misconceptions about threadid() and nthreads() - #26 by Mason](https://discourse.julialang.org/t/psa-thread-local-state-is-no-longer-recommended-common-misconceptions-about-threadid-and-nthreads/101274/26)

---

_[View the full topic](https://discourse.julialang.org/t/multithreading-with-seperate-caches-for-each-thread/116441)._
