Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

multiprocessor: Share same variable

Hi ,

I try to implement a c-code for multiprocessor architecture(3 CPU). I need to know if it is possible that the three processor share the same variable. For example i declare an integer "var" for the three code, if CPU1 change the value of var, then the CPU2 or CPU3 should know the new value of var.

On my architecture the three CPU share a on-chip memery through mutex.

Thank you

11 Replies