I am trying to replicate a little degree of RTOS conditions in Android devices, without having to re-install the whole kernel (as happens with RTDroid). One of these conditions is to ensure that the critical threads will have preference over normal threads, every time they need the CPU or memory.
I understand that the code written in C/C++, using NDK, is executed at the linux kernel level. Meaning that it should have the same priority than the DVM process (Dalvik Virtual Machine). Therefore, I infered that the C/C++ code is executed with a greater priority than any "MAX_PRIORITY" thread running at the DVM.
Can I replicate the same behavior using Renderscript? My intuition says no, as the main thread of execution in Renderscript scripts is controlled by a java application.
Thanks in advance for any insights you could provide me!