View 125% Zoom Add Page Homework 5 @ O D Insert Table Chart Text Shape Media Comment A Please note: combine your homewor
Posted: Fri Jul 01, 2022 5:41 am
questions (if the page/ problem numbers are different in your book, use the text below): 1. Page 429, Problem 4 Explain the tradeoffs between precise and imprecise interrupts on a superscalar machine. 2. Page 431, Problem 23 How many pebibytes are there in a zebibyte? Part II (10 points) Based on the information on previous handouts, answer the following questions: Problem 1: ▪ 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. Problem 2: . Please write a shell script called "myforloop" that displays all the readable file(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; ■ Please provide the code of your script and the output of your script to show it meets the requirements. After you complete, please copy and paste everything (you commands, the outputs, the content of files, and etc.) into one file. If a screen shot is necessary, please include it in this file too. Collaborate Body* Style Font Times New Roman Regular B Character Styles Text Color > Spacing Text Drop Cap B Format Document Layout UJ S None* More 1.0 - Single 12 pt Qu > Bullets & Lists Imported Style 2* A ✔
View 125% Zoom Add Page Homework 5 @ O D Insert Table Chart Text Shape Media Comment A Please note: combine your homework into one (1) Word or PDF file and submit in D2L submission folder designated for this assignment. You may earn up to 20 points for completing this assignment. Part I (10 points) Based on the textbook: Modern Operating Systems, answer the following