Comments (3)
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.
Yeah, it's important to add the related debugging tools. Libcsp will support it in the future.
from libcsp.
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)
- nice job HOT 8
- Is this a bug? HOT 2
- Is there any designer documentation? HOT 1
- Unable to install libcsp HOT 1
- libcsp build failure HOT 1
- Is this library cross platform? HOT 1
- Problem compiling HOT 2
- Future in V HOT 1
- how to build with cmake? HOT 1
- Website is down HOT 2
- Go's select statement: can a co-routine wait for multiple events at the same time, and process them in order they arrive HOT 1
- block call failed.
- Why you used gcc plugin and benefits? HOT 2
- function name and macro was conflict HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libcsp.