Such problems did exist with some older operating systems.

Modern operating systems are designed to avoid such things - at least in applications executed by users.