I have written code involving multiple tasks, in VxWorks. They worked smoothly.
I didn't care about atomic operations, at that point in time. But later, while going through the literature, I found that atomic operations matter when multiple threads access same variable.
I had structures being used by more than one task and it worked fine. But from now on, I would like to be careful. So, are there any methods by which structure operations can be ensured to be atomically safe.
If I understand correctly your question is quite general. You may manage concurrent access to resource (e.g. global variable) in following ways:
The last way will always work, but if you will disable interrupts for long time the OS may stop working correctly (e.g. communication may fail on timeout).