You can use TCP VIs in both the cRIO controllers and communicate with each other. I'm not sure about shared variables, but think that should also be possible.
I will give you two links where you can find detailed information's and guidelines on how to distribute Real Time application with Shared Variables. Please review this documents and let me know if you have further question.