jinyistudio Well-Known Member Licensed User Longtime User Oct 19, 2016 #1 Hi Do you have run b4j(java) app in real-time patch of linux ? I need to get a stable timer 1ms or 500us ! real-time patch = http://www.pengutronix.de/software/linux-rt/debian_en.html
Hi Do you have run b4j(java) app in real-time patch of linux ? I need to get a stable timer 1ms or 500us ! real-time patch = http://www.pengutronix.de/software/linux-rt/debian_en.html
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2016 #2 I don't think that it will make any difference. For 1ms interval you can use a loop instead of a timer. Upvote 0
I don't think that it will make any difference. For 1ms interval you can use a loop instead of a timer.
jinyistudio Well-Known Member Licensed User Longtime User Oct 20, 2016 #3 Hi when i use loop, Do i need use sleep() to share time with kernel ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2016 #4 If it is a non-ui app and you don't need to handle any asynchronous event then you don't need to "sleep". If you do need to handle events then you can use CallSubDelayed to call the loop method from time to time and allow the events to be raised. Upvote 0
If it is a non-ui app and you don't need to handle any asynchronous event then you don't need to "sleep". If you do need to handle events then you can use CallSubDelayed to call the loop method from time to time and allow the events to be raised.