Skip to content

Commit

Permalink
The oldest thread has highest priority compared with the thread of a …
Browse files Browse the repository at this point in the history
…same priority.
  • Loading branch information
At-EC committed Aug 31, 2024
1 parent 6c85ee3 commit 48c4a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static b_t _kernel_thread_node_Order_compare_condition(list_node_t *pCurNode, li
return FALSE;
}

if (pCurThread->priority.level < pExtractThread->priority.level) {
if (pCurThread->priority.level <= pExtractThread->priority.level) {
/* Find a right position and doesn't has to do schedule */
return FALSE;
}
Expand Down

0 comments on commit 48c4a82

Please sign in to comment.