Embedded / RTOS

Moderators: None (Apply to moderate this forum)
Number of threads: 360
Number of posts: 663

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
RTEMS or general RTOS question Posted by bogdanul2003 on 12 Feb 2012 at 11:06 AM
Hello,

I am developing an application for RTEMS that involves two running tasks. Both tasks call at some point the same global function called function1.
Let's say task T1 calls function1 and the context switch to T2 occurs before exiting function1. Task T2 also calls function1.
My question is what happens to the local variables of function1? ... is there a copy of function1 for each task ?

Thanks



 

Recent Jobs