Locking your devices requires the user to re-authenticate to the device, this is useful to prevent unauthorised use of your device. It is an easy thing to do for most devices and provide you a degree of safety from prying eyes.
Windows
The simplest is using a Winkey shortcut which is the Winkey + L key combination
Windows
The simplest is using a Winkey shortcut which is the Winkey + L key combination