# How to write a master-subproblem iterative algorithm asynchronously?

**URL:** <https://discourse.julialang.org/t/how-to-write-a-master-subproblem-iterative-algorithm-asynchronously/131853>\
**Category:** General Usage\
**Tags:** question, async\
**Created:** [August 26, 2025, 11:45am UTC](https://discourse.julialang.org/t/how-to-write-a-master-subproblem-iterative-algorithm-asynchronously/131853 "2025-08-26T11:45:35Z")\
**Posts on this page:** 1\
**Showing post:** 39

<div class="post-metadata">

**Author:** ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Post date:** [October 26, 2025, 12:23am UTC](https://discourse.julialang.org/t/how-to-write-a-master-subproblem-iterative-algorithm-asynchronously/131853/39 "2025-10-26T00:23:36Z")

</div>

Although I don’t quite get your ideas, I invite you to answer one of my other questions.

> [@Is the scheduler's queue ordered?](https://discourse.julialang.org/t/is-the-schedulers-queue-ordered/133414):
>
> I spawn 5 tasks in sequence 1 to 5 (I assume the function foreach is strictly ordered). If I start julia with 1 default thread, it is ordered: ❯ julia --threads=1,1 \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.org (\_) | (\_) (\_) | \_ \_ \_| |\_ \_\_ \_ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ \_` | | | | |\_| | | | (\_| | | Version 1.12.1 (2025-10-17) \_/ |\_\_'\_|\_|\_|\_\_'\_| | Official https://julialang.org release |\_\_/ …

I think the content is pertinent.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-write-a-master-subproblem-iterative-algorithm-asynchronously/131853)._
