Does Screen Switch Function Closes The Previous Screen('s) ?

Does Screen Switch Function Closes The Previous Screen('s) ?

Hello,

I have a quick question regarding the screen switch functions. So does the function actually closes the previous screen('s) or they remain in the background ?

Lets say I have 5 screens in my system and each has their own screen switch function. Moving from screen 1 to screen 2 via screen switch, does screen 1 totally be closed and removed from memory ?

This question is asked to try save hardware resources and not overload the system.

Regards.