Skip to content

Change ThreadPoolExecutor to ProcessPoolExecutor? #7

Description

@oalieno

executor = concurrent.futures.ThreadPoolExecutor(max_workers=jobs)

executor = concurrent.futures.ThreadPoolExecutor(max_workers=context.params().jobs)

Using thread to handle CPU-bound tasks in python may not be helpful due to the issue of GIL.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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