Skip to content

How many threads does Pluto use vs Threads.nthreads()? #2086

@adomasbaliuka

Description

@adomasbaliuka

If I start Julia with --threads=1 (or --threads=6) , running Threads.nthreads() in the console gives 1 (or 6), as expected. If I then use the Julia instance to start a Pluto notebook, Threads.nthreads() in the notebook always gives 4. Why is this? Does it have to do with the browser? Is it representative of how many threads the notebook can actually use and relevant for performance?

Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
JULIA_REVISE_WORKER_ONLY = 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions