-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proc: Rename kernel thread to kthread instead of idle #556
base: master
Are you sure you want to change the base?
Conversation
to avoid confusion when using 'ps' applet DONE: RTOS-845
@@ -1944,7 +1944,7 @@ int proc_threadsList(int n, threadinfo_t *info) | |||
} | |||
else { | |||
map = threads_common.kmap; | |||
hal_memcpy(info[i].name, "[idle]", sizeof("[idle]")); | |||
hal_memcpy(info[i].name, "[kthread]", sizeof("[kthread]")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why, kernel threads just can't have its names ? eg. [idle]
, [klog]
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Threads in general do not have names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I see, but asked why, it is (and woud be) a hack anyways.
[kthread]
eating 99% of the cpu looks weird (I liked [idle]
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get too many question lately "why there're two idle threads on single core system?" :)
This PR is just a proposition, for @Darchiv to decide whether we want this or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to avoid confusion when using 'ps' applet
DONE: RTOS-845
Description
Motivation and Context
Types of changes
How Has This Been Tested?
Checklist:
Special treatment