Is node 4 live also using low-priority thread ?

sefable2 sefable2's icon

Hello,

I have the need to run code every 5 ms that is time-critical.

I looked at https://docs.cycling74.com/max7/vignettes/jstaskobject

But it clearly says : "the function runs in a low-priority thread. Therefore you should avoid using a Task function in a time-critical operation."

Could node 4 live be a solution in that case?

What is the thread priority of the Node.js thread run by max msp?

My last resort it to use "metro" and code using "expr", I would then (if I understood correctly) run in a higher-priority thread, but it's WAY more tedious than coding in javascript for the requirement I have.

I also don't want to compile C nor Java.

I am not looking for a solution that is "real time". Just a solution where I'm not stuck in a low-priority thread.

Thanks!

Max Gardener's icon

I believe that Sam Tarakajian has responded to a similar question here. You might find his insights useful:

https://cycling74.com/forums/some-questions-about-node-script-and-max-8