I think they get scheduled in an event loop:
However this is for things that are not “thread safe”. I guess it depends what functions the automation calls as to whether that is true or not.
Disclaimer: so far out of my depth here I cant see the bottom.