Expose thread/task priorities
Nobody has claimed this yet.
- Dominant language
- Markdown
- Stars
- 6.6k
- Forks
- 1.7k
- Avg merge
- 16h 14m
- Merged PRs (30d)
- 1
Description
Issue by hoeppnertill
Wednesday Jul 23, 2014 at 18:09 GMT
For earlier discussion, see https://github.com/rust-lang/rust/issues/15927
This issue was labelled with: A-libs in the Rust repository
Trying to find an equivalent to the following C++ code,
struct sched_param p;
p.sched_priority = priority;
pthread_setschedparam(thread_, SCHED_FIFO, &p);
I failed to set the task priority using just exposed API.
brsons statement on IRC,
you can just call the pthread functions, but you'll be creating a thread that doesn't have the runtime setup properly
leaves little doubt that an exposed API for this actually is needed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the earlier discussion in rust-lang/rust#15927 and the pthread_setschedparam example in the issue. Determine the exposed API and runtime requirements needed for thread or task priorities; done means an agreed design that addresses the runtime-setup concern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100