My example is currently occurring in capitalist countries. Your example could not happen under anarchist communism because there would be no state, there would be no money, and obviously if you were starving you would obviously not be receiving everything that you need. If there was a shortage of food, another collective’s surplus would be given to the collective in need. Production would ensure that necessities are satisfied first.