Linux-based operating systems are deemed to be more stable than other operating systems. Testimony to this is the fact that Linux powers over 95% of supercomputers in the world. However, stability and performance doesn’t mean that Linux systems don’t experience app or OS freezes.
There could be many different types of freezes such as situations where one or more applications freeze, the mouse stops responding along with applications, and finally, where everything (including the keyboard) freezes. In this article we will discuss in detail the various solutions available for each case and in what order you should apply them.
Source: How to Handle App/OS Freezes in Linux (Make Tech Easier)