Build your own RTOS on BBB

Hi,
Can I write me own RTOS on BBB?

What I wonder is, say that I put an High-Priority Thread A on sleep for 10ms, and let Low-Priority Thread B works,

How can I make sure that after 10ms Thread A will halt Thread B and will gain the CPU time?

Thank you.

Hi,
Can I write me own RTOS on BBB?

What I wonder is, say that I put an High-Priority Thread A on sleep for
10ms, and let Low-Priority Thread B works,

How can I make sure that after 10ms Thread A will halt Thread B and will
gain the CPU time?

Go look at pre-emptive scheduling, and never let any program turn off
the timer interrupt (or at least if it does, make sure that it goes
back on very very soon).

Why not look into FreeRTOS, which may answer a lot of your needs, and
is already written?

Harvey

Hi,

What your are seeking for will work under every standard OS. The questions is not if it works, the question is which latencey you can accept - means how fast must thread A resume after the 10ms elapsed? To get an idea what BBB can do I reccomend to have a look at toyooka_LCJ2014_v10.pdf.
I would not be surpised if Debian w/o any patches can fulfil your latency needs.

Chilli