Alignment tutorial needed!!
I have urgently to understand starting from a zero level all allignment issues/problems. In C or C++. In Linux with pthreads or in Microsoft.
I apologize if I already discussed this topic partially in some threads but, due to my ignorance, I didn't manage to understand the topic so it would be better to "reset and start again".
(1) When/Why is alignment needed? When one should change the compiler/linker defaults?
(2) What about alignment of arrays and structures?
(3) What about the chance that two threads disturb each other if they access two data which are adjacent?
Thank you very much