Solution for operating system problem one and two.