GithubHelp home page GithubHelp logo

Comments (1)

lukecwik avatar lukecwik commented on July 17, 2024

Since isAlive relies on __started being set, there is a race where ident can be set and isAlive returns false during the new threads bootstrapping process. This means that checking ident and then !isAlive can mark the worker as dead during the bootstrap process.

This seems to be an issue from Py 2.7:
https://hg.python.org/cpython/file/2.7/Lib/threading.py#l785
and still is an issue in the current version:
https://github.com/python/cpython/blob/60bd1f88f21073965a444c8b39c4202d015da5d6/Lib/threading.py#L929

Was there a point in time where the new worker was being added to the list of known workers before start() was being invoked?

from collapsing-thread-pool-executor.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.