With C linux pthreads
(1)
How can I enquire which is the memory granularity of the processor ?
I mean what size has one memory access (write or read)?
This info I need to avoid multithread problems
Guess 32bits is the most common?
(2)
How can I control padding of variables to 32bit or 64bit? And padding between fields inside a structure or between array elements? (I mean gcc directives)