If your Mac OS system freezes, you must force shutdown and then restart it. However, in this case, there is a risk of losing some of the data that you worked with before the system freeze. This article will show you how to force shutdown Mac OS and try to save data.
Steps

Step 1. Wait a bit
Give the system a little time (about five minutes), and, perhaps, it will start working again (maybe some process is started that takes up all system resources; wait until this process ends).
This is especially true if the screen displays a beach ball icon. This means that the system is busy executing some process

Step 2. Make sure that the system freezes completely, that is, does not respond at all
If you can move your mouse cursor around the screen, then perhaps you can access applications to save data.

Step 3. Try to shutdown the system as usual, that is, click on the Apple icon and select “Shut Down”

Step 4. Try shutting down the system by pressing Control + Option + Command + Eject
If it worked, active applications will be closed and data saved.

Step 5. If the system is still not responding, shut down the system by pressing the power button on the system unit
To do this, hold the power button for 3-5 seconds.
