Pretty much. This is essentially a data race, which you can somewhat get around by using volatile loads. However the "cute data structure" will definitely not work in such conditions.
Pretty much. This is essentially a data race, which you can somewhat get around by using volatile loads. However the "cute data structure" will definitely not work in such conditions.