c++ - how can I pause/stop threads on linux to run another thread of top priority -
i have linux service waits messages central , let tasks ordered messages. think need create new thread.
moreover, 1 task have absolute priority compared others , when order task comes, need accomplish possible. also, since these stuff on embedded system , resources restricted, thought need pause other threads created.
i imagine need thing similar here:
how sleep or pause pthread in c on linux
but question not duplicate. not have exact point pause threads. need pause them wherever possible, , continue when prioritized task finished.
and here suggests way seems obsolete , use std::thread.
- how achieve prioritize 1 task?
- (maybe before that) tasks, need design thing "thread manager", or there simpler thoughts?
note: have used word "task" is, not technical term.
Comments
Post a Comment