Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the most common configurations where pointer writes are not atomic?

I am interested in multithreading. There are a lot of gotchas in the field, for example, there is no guarantee that pointer writes are atomic. I get this, but would like to know what are the most popular current configurations when this is actually the case? For example, on my Macbook Pro/gcc, pointer writes definitely seem to be atomic.

like image 457
Johan Kotlinski Avatar asked Jan 20 '11 10:01

Johan Kotlinski


People also ask

How do you find the actual configuration of an atom?

Actual configurations have not been verified. The electron configuration states where electrons are likely to be in an atom. If you don’t have a chart, you can still find the electron configuration. Use the element blocks of the periodic table to find the highest electron orbital.

How do electronic configurations of atoms help explain the periodic table?

The electronic configurations of atoms help explain the properties of elements and the structure of the periodic table. When atoms collide and react, it is the outer electrons that meet and...

What are the symbols used for writing electron configuration?

The symbols used for writing the electron configuration start with the shell number (n) followed by the type of orbital and finally the superscript indicates how many electrons are in the orbital.

How do you find the electron configuration without a chart?

If you don’t have a chart, you can still find the electron configuration. Use the element blocks of the periodic table to find the highest electron orbital.


2 Answers

This is mostly a problem for CPU architectures where the pointer width is larger than the width of the CPU architecture. For instance, on ATmega CPUs, an 8-bit architecture, the address space is 16-bit. If there aren't any specific instructions to load and store 16-bit addresses, at least two instructions are needed to load / store a pointer value.

like image 52
Daniel Gehriger Avatar answered Oct 23 '22 05:10

Daniel Gehriger


See here.

like image 35
rkellerm Avatar answered Oct 23 '22 05:10

rkellerm