Giter Site home page Giter Site logo

CPU Pinning about libcsp HOT 3 OPEN

abelpc avatar abelpc commented on May 21, 2024
CPU Pinning

from libcsp.

Comments (3)

shiyanhui avatar shiyanhui commented on May 21, 2024 2

Good question.

To a coroutine library, there is two kinds of CPU pinning,

  • Bind the thread to CPU.
  • Bind the coroutine(in libcsp it's called process) to CPU.

Currently libcsp only implements the first one(that's why it's so fast). Sometimes it may be a bad idea to bind a task process to a CPU since other CPUs may starve. What we can do is to try the best to do it without guarantee. Anyway I'll try to implement the second one.

from libcsp.

shiyanhui avatar shiyanhui commented on May 21, 2024 1

Yeah, it's important to add the related debugging tools. Libcsp will support it in the future.

from libcsp.

abelpc avatar abelpc commented on May 21, 2024

I would personally be interested indeed in the second one. Let the OS decides about which process starves since this would be the user's choice. However, it would perhaps be best to allow/enable users with ways to query the current scheduling state done by libcsp. That's mostly for debugging concerns.

from libcsp.

Related Issues (15)

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.