Skip to content

InterpreterPoolExecutor's default thread name prefix is invalid #136470

Open
@aisk

Description

@aisk

Bug report

Bug description:

from concurrent.futures import InterpreterPoolExecutor


def w():
    import time
    time.sleep(100)

executor1 = InterpreterPoolExecutor()
executor1.submit(w)
executor1.submit(w)

executor2 = InterpreterPoolExecutor()
executor2.submit(w)
executor2.submit(w)

executor1.shutdown()
executor2.shutdown()

With this code, htop with "Show custom thread names" enabled) shows it's ThreadPoolExecutor instead of InterpreterPoolExecutor:

htop output

Other process monitor tools may have the same result if it read the custom thread name from OS.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS, Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy