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 pause pthread time want?

  • 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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -