* Linux Operating System 許 富 皓 * Processes Switch * switch_to Macro Assumptions: local variable prev refers to the process descriptor of the process being switched…