Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

InterpreterPoolExecutor's default thread name prefix is invalid #136470

Closed
Labels
stdlibStandard Library Python modules in the Lib/ directorytopic-subinterpreterstype-bugAn unexpected behavior, bug, or error
@aisk

Description

@aisk

Bug report

Bug description:

fromconcurrent.futuresimportInterpreterPoolExecutordefw():importtimetime.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'sThreadPoolExecutor instead ofInterpreterPoolExecutor:

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

    stdlibStandard Library Python modules in the Lib/ directorytopic-subinterpreterstype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp