Is node 4 live also using low-priority thread ?


    Oct 16 2019 | 10:08 am
    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!

    • Oct 16 2019 | 5:13 pm
      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