Thread priority question


#1

Hello,

I was wondering if it is safe to assume, that the audio thread in my plugin allways has the highest priority? ( I am refering to the one created by subclassing “AudioProcessor”)
What priority does it actually have?

In my case, I am updating the GUI with a timer thread (JUCE::Timer). Can I be sure, that the audio thread allways has precedence and I do not have to fear dropouts?


#2

Its a fairly safe assumption. Most audio threads are high-priority threads provided by the operating system. You should not need to mess with priorities or worry about them.


#3

Thanks Vinn,

Thats reassuring. Good to know I do not need to worry. :slight_smile:


#4

You still need to make sure you don’t call from anything inside your processReplacing() that can block (like malloc, free, new, delete, operating system calls, etc).