To ensure that the device functions correctly and benignly, and to avoid the corruption of data, the operating system must reinforce security & protection measures.
Security is the ability of the computer to protect data from malicious actions, usually from outside.
An example of a security measure is to prevent an