Book Link:
https://csc-knu.github.io/sys-prog/books/Andrew%20S.%20Tanenbaum%20-%20Modern%20Operating%20Systems.pdf
Question 1
Page 429, Problem 4:
Explain the tradeoffs between precise and imprecise interrupts on a superscalar machine.
Question 2
Page 431, Problem 23:
How many pebibytes are there in a zebibyte?
Question 3 Please write a shell script called “checkfile”, that checks a file provided from the command line by the user to determine whether it is a regular file. If it is a regular file, your script should go further to determine whether it is readable and executable. Your script should display the information on each checking step it makes, such as “The file is a regular file” or “The file is a readable file”, etc.
Please test your script to make sure it displays the information as required.
Please provide the code of your script and the output of your script to show it meets the requirements.
Question 4
Please write a shell script called “myforloop” that displays all the readablefile(s) under your “lab5” directory, such as my2, my3, and my4.
You must use a for-loop in your script. You might want to test all the examples of for-loop provided in the handout to see which one matches your need.
Please test your script to make sure it displays the information as required.