This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can a task call function defined in another task?

Hello, we are using Keil's RTX Real-Time Operating System.

Can a task call function defined in another task ?

Thank you!

  • Functions aren't defined in tasks. As long as a function is reentrant, i.e. safe to call multiple times, then any task can call it. If the function does some interesting state manipulation, then you may have to adjust it to define critical sections to synchronize concurrent calls.