No. It does not work that way. Hibernating is working on a hardware level, not session.
If you are bothered by manually starting applications - auto-start them. All modern WM has ability to auto-start application, and majority of application have ability to restore its last working state.
The probable solution could be a virtual machine - put one (or both) users in a separate VM instances and they would be independent from each other and you would be able to hibernate an instance which is not needed right now.
But most likely, the hardware, which would allow a VM for normal user work, would not need to shut one session to free resources for another one...
But ultimately - if your task requires so much memory that you have to shut down parallel processes - increase physical RAM on the machine. It is cheap. Not free, but cheap. Or buy a second machine.