Skip to content

O(1) pend queue support #2422

@zephyrbot

Description

@zephyrbot

Reported by Benjamin Walsh:

Searching a wait queue for a kernel object to determine where to insert a waiting thread (based on its priority) is potentially very inefficient. Providing a configuration option that creates a separate queue for each possible thread priority would allow the thread to simply be appended to the queue for its associated priority, without the need for searching. (Of course, this forces the kernel to do additional work to allow it to quickly identify the highest priority non-empty queue when it wants to service the highest priority waiting thread.)

(Imported from Jira ZEP-915)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions