Skip to content

Convert rust_task_thread::running_tasks list to a queue #2028

Closed
@brson

Description

@brson

Right now it is a list, and scheduling a task involves using a the rng to pick a task and blocking involves removing it from the middle of the list. It would be more efficient (and probably more fair) as a queue. Sort of depends on #1189 and on #2027 in that it would be nice to get rid of the blocked_tasks list as well.

Metadata

Metadata

Assignees

Labels

A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsI-slowIssue: Problems and improvements with respect to performance of generated code.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions