Exercise 3.2 3.6(2013329620083) Version 0 |
|
👤 Author: by 2013329620083ycd 2015-09-27 21:54:04 |
3.2
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
#include<sys/types.h>
#include<stdio.h>
#include<unistd.h>
int mai