JuliaFolds2 / JuliaFolds2/ThreadsX.jl

Tasks are scheduled on the interactive threadpool

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

julia> ThreadsX.map(_ -> (@info Threads.threadpool()), 1:2);
[ Info: interactive
[ Info: default

julia> foreach(wait, map(_ -> Threads.@spawn(@info Threads.threadpool()), 1:2))
[ Info: default
[ Info: default

julia> versioninfo()
Julia Version 1.12.5
Commit 5fe89b8ddc1 (2026-02-09 16:05 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, skylake)
  GC: Built with stock GC
Threads: 8 default, 1 interactive, 8 GC (on 8 virtual cores)
Environment:
  LD_LIBRARY_PATH = /usr/local/lib:
  JULIA_PKG_SERVER = https://eu-central.pkg.julialang.org
  JULIA_EDITOR = code

(jl_jnlyDn) pkg> st
Status `/tmp/jl_jnlyDn/Project.toml`
  [ac1d9e8a] ThreadsX v0.1.12

This may be a Transducers issue, so please move it to that repo if appropriate.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Julia 1.12.5 examples using ThreadsX.map and Threads.@spawn, then inspect the ThreadsX and Transducers scheduling entry points. Determine whether the behavior belongs in ThreadsX or Transducers; the issue is complete only when the responsible repository and expected threadpool behavior are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.