While process running can i put a breakpoint?

Hey every one,

I got a use case that I would like your help with.
I have 2 processes 1 running,
while process (on a normal priority) 1 working can I put a breakpoint that can check if process number (on high priority) 2 has work to do,
the breakpoint will stop process 1 and starts process 2.
after process 2 ended then process one will resume.

there something like that on Uipath?

Take a look at long running processes, might be what you are looking for.