My graduation thesis for CPU