I was reading about the Long term scheduler, when I read that when memory is not enough and load on the CPU due to multiprogramming is too high, a process might be moved to secondary storage space (namely swap space). I am slightly confused as too what exactly happens when a process is moved out of memory. Is its "PCB(Process Control Block)" moved out and store in Hard disk or something else like "process state".
I believe that this confusion is due to lack of clarity between "process in memory" and "process control block". Are the two things different or the same?
The above two diagrams have been picked from the 3rd chapter of Operating Systems Concepts 9th edition.