3 ms·
The Lua interpreter is not a real-time interpreter and cannot give bounded response time. This is a non-realtime application running on top of a scheduler that
by TickleSteve 5y ago
The Lua interpreter is not a real-time interpreter and cannot give bounded response time.
This is a non-realtime application running on top of a scheduler that is capable of supporting realtime applications.
Just placing an application on top of an RTOS does not make it realtime.
- fullstop 5y agoExecution can be interrupted, though, through debug hooks. It could be set up to yield every N instructions. [1] There's a few caveats, though, in that this will not be called if you've called into C code. That is, you will only yield while executing code in the Lua interpreter. 1. https://pgl.yoyo.org/luai/i/lua_sethook https://pgl.yoyo.org/luai/i/lua_sethook