Excise 3.2 and 3.6_董彦松 Version 0 |
|
👤 Author: by 2013329620071d 2015-10-10 08:52:21 |
3.2
Answer:In general, the operating system must save the state of the currently running process and restore the state of the process scheduled to be run next. Saving the state of a process typically includes the values of all the CPU registers in addition to memory allocation. Context switches must also perform many architecture-specific operations, including flushing data and instruction caches.
3.6
Answer:
#include<sys/types.h>
#include<stdio.h>
#include<unistd.h&