I'm running processing on a Raspberry Pi 2 with debian jessie which allows executables to have higher thread prioritys. Just wondering if it's possible to give a sketch a higher priority with my setup.
I am afraid your last statement is wrong, no new thread is being created and in a Processing sketch Thread.currentThread(); returns the Animation Thread.
I created the sketch below from the code from my link.
Use the + and - keys to change the Animation Thread priority between 1 and 10 inclusive, it starts at 5.
Answers
In what sense?
I'm running processing on a Raspberry Pi 2 with debian jessie which allows executables to have higher thread prioritys. Just wondering if it's possible to give a sketch a higher priority with my setup.
The code on this webpage should help.
The code seems to just create a separate thread but it does not change the sketch thread priority.
I am afraid your last statement is wrong, no new thread is being created and in a Processing sketch
Thread.currentThread();
returns the Animation Thread.I created the sketch below from the code from my link.
Use the + and - keys to change the Animation Thread priority between 1 and 10 inclusive, it starts at 5.
Thank you for the information Sir. This does work.:)