Coder Social home page Coder Social logo

dbus service thread count about adbus HOT 5 CLOSED

laped83 avatar laped83 commented on July 1, 2024
dbus service thread count

from adbus.

Comments (5)

charleseidsness avatar charleseidsness commented on July 1, 2024

Hi Lars,

That is sort of expected, but a little surprising. Method calls are run in an executor so that they don't block the mainloop when being processed. This is used to avoid possible deadlocks when method calls call methods on other applications which may call back to us, among other things.

If you don't set the executor (which you can do by passing an argument to the Method init method) it will use the default executor which is a thread-pool.

Python run_in_executor

I would expect that once you hit the maximum threads in your default thread-pool it should start re-using them.

The surprising thing; to me at least, is that it doesn't reuse them as soon as they are available. I guess that's just how it works. We have a lot of test hours on this library and haven't seen massive amounts threads spawned on our systems so I think it's all working correctly, but I will start taking a closer look at it now on our running systems.

Thanks!
Charles

from adbus.

laped83 avatar laped83 commented on July 1, 2024

Okay thanks for the feedback. I can also see that you sometime ago has added the ability to use a different executor.

When will you tag a new release? I can also see that https://pypi.org/project/adbus/ is on a v1.0.1.

It will be so easier for me to use a released version when creating an upstreamed rule in the ptxdist(https://www.ptxdist.org/)

Again thanks for the great work!

Regards
Lars Pedersen..

from adbus.

charleseidsness avatar charleseidsness commented on July 1, 2024

Sure, I just created a new release 1.1.2 and uploaded it to PyPi, or at least I think I did. I have to re-learn how to do it every-time.

from adbus.

laped83 avatar laped83 commented on July 1, 2024

Thanks. Looks like you have lost the LICENSE file in the src on pypi?

from adbus.

charleseidsness avatar charleseidsness commented on July 1, 2024

Thanks! Just updated it with 1.1.3.

from adbus.

Related Issues (20)

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.