For Windows PC: Use Ctrl-Alt-Del → Select Lock OR Windows Key + L. For Mac: see Use a screen saver on your Mac. For mobile devices: Don't store anything you're not willing to lose.