CFS264_HW5
docx
keyboard_arrow_up
School
Metropolitan State University Of Denver *
*We aren’t endorsed by this school
Course
264
Subject
Mechanical Engineering
Date
Apr 3, 2024
Type
docx
Pages
3
Uploaded by ProfTrout4139
CFS264 Computer and Operating Systems Fundamentals II
‐
Page 1 of 3
Homework 5
_____________________________________________________________________________________
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 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.
Precise interrupts
the CPU to carefully log everything it is doing and maintain shadow copies
of registers; this makes the overall performance for precise interrupts slower. Enabling backward compatibility with precise interrupts is complex interrupt logic. The system must be notified when an interrupt is occurring so that any changes will not have an effect after the
interrupt. Although it doesn’t make the performance slower, it takes up more chip area and is more complex in design.
For Imprecise interrupts, The Programmer must figure out where the fault occurred which is a daunting task considering the process that concurrently run. It typically spits out large amounts of information to help the programmer find the fault. The problem is the large amount of information’s make the interrupt slow and recovery even slower. Fast superscalar machines are turned into slow unusable computers due to this.
2.
Page 431, Problem 23
How many pebibytes are there in a zebibyte?
1048576
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.
Input : !/bin/bash
_____________________________________________________________________________________
Please submit your homework in one (1) file in D2L on time
CFS264 Computer and Operating Systems Fundamentals II
‐
Page 2 of 3
Homework 5
_____________________________________________________________________________________
FILE
=
$1
if [
-f
"$FILE"
]; then
echo
"File $FILE is a regular file."
if [
-r
"$FILE"
]; then
echo
"File $FILE is readable."
else
echo
"File $FILE is NOT readable."
fi
if [
-x
"$FILE"
]; then
echo
"File $FILE is executable."
else
echo
"File $FILE is NOT executable."
fi
else
echo
"File $FILE is NOT a regular file or does not exist."
Fi
Output: bash ./checkfile.sh test2
File test2 is a regular file.
File test2 is readable.
File test2 is NOT executable.
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.
Input: #!/bin/bash
directory
=
"."
if [
-d
"$directory"
]; then
for file in "$directory"
/*
; do
if [
-r
"$file"
]; then
echo
"Readable file: $file"
fi
done
else
echo
"Directory $directory not found."
Fi
_____________________________________________________________________________________
Please submit your homework in one (1) file in D2L on time
CFS264 Computer and Operating Systems Fundamentals II
‐
Page 3 of 3
Homework 5
_____________________________________________________________________________________
Output : cfs264sp2442@sp-cfsics
:
~/lab5
$ ./myforloop.sh
Readable file: ./my2
Readable file: ./my3
Readable file: ./my4
Readable file: ./myforloop.sh
Readable file: ./shellsc
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.
_____________________________________________________________________________________
Please submit your homework in one (1) file in D2L on time
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Documents
Related Questions
1. Please help me solve this mech. engineering question
arrow_forward
27. You have the following compound machine.
For S
and ins
a.
What is the ideal mechanical advantage of this
system? The inclined plane dimensions are 7.2 meters
length and 1.8 meters height.
What effort force is required to move the 600N
create?
In practice, you need to supply an effort force
of 75 N to lift the crate. What is the efficiency?
C.
How could you redesign this compound
d.
machine so that the effort force needed was 50 N in
practice? Assume the efficiency is your response from
part C no matter what changes you make. Be specific
with the changes you propose (if you add pulleys state
how many, if you change the inclined plane
dimensions state the new dimensions, etc.).
arrow_forward
11. How might your machine or system be
improved? What constraints might be
involved in its design?
Library/De Agostini/l
arrow_forward
a. Currently, you serve as a robotic engineer by a company, and your boss want you
to design a robot in spatial space to satisfy the following conditions:
i. Max reachable distance of the robot is 1 meter.
ii.
Only using revolute joints, connecting links and rigid load bearing links
(the length of link is 0.5m).
iii. The degree of freedom (Dof) of the robot is 2.
What is your design, how many joints and links will you use?
b. The payload of your design is 10 kg (each load bearing link can hold 5 kg, 5 kg+5
kg=10kg, the weight and payload of the connecting links will be ignored), but
your boss wants your designed robots to handle 20 kg payload. How will you
update your current design, and how many joints and links will you use in the
new design? What is the Dof of the new designed robot.
arrow_forward
PLEASE ANSWER NUMBER 9.MECH 221-KINEMATICS: PLEASE GIVE DETAILED ANSWER AND CORRECT ANSWERS. I WILL REPORT TO BARTLEBY THOSE TUTORS WHO WILL GIVE INCORRECT ANSWERS.
arrow_forward
University Of Babylon
College of Mussayb
Automobile Production
Quiz(2) 2024-205
7. Which classification method considers the
number of independent movements a robot can
make?
0
0
о
a) Classification by Degrees of Freedom
b) Classification by Kinematic Structure
c) Classification by Drive Technology
d) Classification by Workspace Geometry
8. Which classification method focuses on the
arrangement of the robot's joints?
。 a) Classification by Degrees of Freedom
。 b) Classification by Kinematic Structure
° c) Classification by Drive Technology
od) Classification by Motion
Characteristics
9. What is the difference between a robot with 2
Degrees of Freedom (DOF) and one with 6
DOF?
о a) The 6 DOF robot can move faster.
o b) The 6 DOF robot can move more
precisely.
o c) The 6 DOF robot can perform more
complex tasks.
o d) All of the above
10. What are some examples of drive technologies
used in robots?
。 a) Hydraulic, pneumatic, and electric
о
b) Gear, belt, and chain drives
o c) Ball screws,…
arrow_forward
MENG364 MANUFACTURING TECHNOLOGY
please solve the question very quickly
Student Number 124544
arrow_forward
University of Babylon
Collage of Engineering\Al-Musayab
Department of Automobile
Engineering
Under Grad/Third stage
Notes:
1-Attempt Four Questions.
2- Q4 Must be Answered
3-Assume any missing data.
4 تسلم الأسئلة بعد الامتحان مع الدفتر
Subject: Mechanical
Element Design I
Date: 2022\01\25
2022-2023
Time: Three Hours
Course 1
Attempt 1
Q1/ Design a thin cylindrical pressure tank (pressure vessel) with hemispherical ends to the
automotive industry, shown in figure I below. Design for an infinite life by finding the
appropriate thickness of the vessel to carry a sinusoidal pressure varied from {(-0.1) to (6) Mpa}.
The vessel is made from Stainless Steel Alloy-Type 316 sheet annealed. The operating
temperature is 80 C° and the dimeter of the cylinder is 36 cm. use a safety factor of 1.8.
Fig. 1
(15 Marks)
Q2/ Answer the following:
1- Derive the design equation for the direct evaluation of the diameter of a shaft to a desired
fatigue safety factor, if the shaft subjected to both fluctuated…
arrow_forward
University Of Babylon
College of Mussayb
Automobile Production
Quiz(2) 2024-205
Question one: List and defining the parameters of a robot
Question Two List the functionalities of Robot
Question Three:
1. What is the key factor that determines the
feasibility of a robot's movements?
oa) Speed
ob) Stability
c) Both speed and stability
od) The type of control system used
2. What is the relationship between speed and
stability in robot movements?
oa) They are directly proportional
b) They are inversely proportional
c) They are independent of each other
od) There is no relationship between them
3. Which two disciplines are closely related to
robot movements?
oa) Robotics and Mechanical Engineering
o b) Robotics and Control
c) Control and Computer Science
od) Mechanical Engineering and Computer
Science
4. Why is a powerful control system crucial for
robots?
0 a) To increase the robot's speed
ob) To improve the robot's stability
o c) To maintain a balance between speed
and stability
od) To…
arrow_forward
Please help me with the Mechanical Design question in the image below. Thank you so much!!
arrow_forward
Question number 1
arrow_forward
Please only do 5
arrow_forward
Problem 3: A small gearing system in your brand-new 3D printer fails as you were printing,
leading to an overload in the motor and a fire in your home. The fire spreads, burning half of
Everglades National Park in the worst environmental disaster in US history.
The printer company blames you! Stating that you must have been misusing the printer some-
how. Use your engineering knowledge to "show those jerks you mean business!"
You investigate and find a serial number on the gears and type it into Google, finding the
company that manufactures the gears. Their website provides some info that this series of gear is
made from AISI 4340 steel and the yield strength is 125 kpsi.
Assuming each gear tooth acts as a small cantilever, prove to the 3D printer company that they
are liable for the fire.
oct
#
Gear Information
Gear radius (r): 1.00 in
Tooth length (1): 0.15 in
Tooth height (h): 0.15 in
Tooth thickness (b): 0.1 in
Angular velocity (w): 0.1 rad/s
Motor Information
Power (H): 0.009 hp
1…
arrow_forward
First read Section 2.14 of the Kaminski & Jensen text entitled, The “Pizza” Procedure for Problem Solving (silly name maybe, but it underscores the need to break large problems intomanageable parts). In describing the major parts of the procedure for solving engineeringproblems, an analogy is made to a stool with three legs. Name and describe in a few words the3 “legs” of the procedure for solving engineering problems:
arrow_forward
I want to answer all the questions by handwriting.
arrow_forward
Handwritten solution required.
Strictly don't use chatgpt.
If you use chatgpt ,I will report the answer for sure.
Mechanical engineering dynamics.
arrow_forward
reply fast
arrow_forward
The title of our study is "Design and Fabrication of an Agricultural Spraying Attachment for an Autonomous Rover" we need help in the machine design part of our study, specifically Pump selection, battery selection, and center of gravity computation I already sent you the image of the rover Rover weight capacity 35 kilo grams (payload) Rover measurements: Wheel distance - 14.5 inches and 8.5 inches Rover platform size (width & length) 14.4 inches x 10.4 inches Height- 15.8 inches. Water tank selection More or less 25 liters *For tank selection we need to justify the size with the center of gravity, proving that is the maximum dimension or liters of the tank because the center of gravity will be higher making the rover prone to toppling Pump selection *Our sprayer design has two nozzles which splits using a tee splitter, we need to find the size of the pump to obtain the same discharge rate of a normal sprayer. A normal sprayer has a 12V pump and a pressure from 0.2 to 0.45 mpa…
arrow_forward
Acceleration analysis: Hello, I am stuck on the last part (d) and I'm not sure how to start. I have solved all other parts, Thanks.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Automotive Technology: A Systems Approach (MindTa...
Mechanical Engineering
ISBN:9781133612315
Author:Jack Erjavec, Rob Thompson
Publisher:Cengage Learning
Related Questions
- 1. Please help me solve this mech. engineering questionarrow_forward27. You have the following compound machine. For S and ins a. What is the ideal mechanical advantage of this system? The inclined plane dimensions are 7.2 meters length and 1.8 meters height. What effort force is required to move the 600N create? In practice, you need to supply an effort force of 75 N to lift the crate. What is the efficiency? C. How could you redesign this compound d. machine so that the effort force needed was 50 N in practice? Assume the efficiency is your response from part C no matter what changes you make. Be specific with the changes you propose (if you add pulleys state how many, if you change the inclined plane dimensions state the new dimensions, etc.).arrow_forward11. How might your machine or system be improved? What constraints might be involved in its design? Library/De Agostini/larrow_forward
- a. Currently, you serve as a robotic engineer by a company, and your boss want you to design a robot in spatial space to satisfy the following conditions: i. Max reachable distance of the robot is 1 meter. ii. Only using revolute joints, connecting links and rigid load bearing links (the length of link is 0.5m). iii. The degree of freedom (Dof) of the robot is 2. What is your design, how many joints and links will you use? b. The payload of your design is 10 kg (each load bearing link can hold 5 kg, 5 kg+5 kg=10kg, the weight and payload of the connecting links will be ignored), but your boss wants your designed robots to handle 20 kg payload. How will you update your current design, and how many joints and links will you use in the new design? What is the Dof of the new designed robot.arrow_forwardPLEASE ANSWER NUMBER 9.MECH 221-KINEMATICS: PLEASE GIVE DETAILED ANSWER AND CORRECT ANSWERS. I WILL REPORT TO BARTLEBY THOSE TUTORS WHO WILL GIVE INCORRECT ANSWERS.arrow_forwardUniversity Of Babylon College of Mussayb Automobile Production Quiz(2) 2024-205 7. Which classification method considers the number of independent movements a robot can make? 0 0 о a) Classification by Degrees of Freedom b) Classification by Kinematic Structure c) Classification by Drive Technology d) Classification by Workspace Geometry 8. Which classification method focuses on the arrangement of the robot's joints? 。 a) Classification by Degrees of Freedom 。 b) Classification by Kinematic Structure ° c) Classification by Drive Technology od) Classification by Motion Characteristics 9. What is the difference between a robot with 2 Degrees of Freedom (DOF) and one with 6 DOF? о a) The 6 DOF robot can move faster. o b) The 6 DOF robot can move more precisely. o c) The 6 DOF robot can perform more complex tasks. o d) All of the above 10. What are some examples of drive technologies used in robots? 。 a) Hydraulic, pneumatic, and electric о b) Gear, belt, and chain drives o c) Ball screws,…arrow_forward
- MENG364 MANUFACTURING TECHNOLOGY please solve the question very quickly Student Number 124544arrow_forwardUniversity of Babylon Collage of Engineering\Al-Musayab Department of Automobile Engineering Under Grad/Third stage Notes: 1-Attempt Four Questions. 2- Q4 Must be Answered 3-Assume any missing data. 4 تسلم الأسئلة بعد الامتحان مع الدفتر Subject: Mechanical Element Design I Date: 2022\01\25 2022-2023 Time: Three Hours Course 1 Attempt 1 Q1/ Design a thin cylindrical pressure tank (pressure vessel) with hemispherical ends to the automotive industry, shown in figure I below. Design for an infinite life by finding the appropriate thickness of the vessel to carry a sinusoidal pressure varied from {(-0.1) to (6) Mpa}. The vessel is made from Stainless Steel Alloy-Type 316 sheet annealed. The operating temperature is 80 C° and the dimeter of the cylinder is 36 cm. use a safety factor of 1.8. Fig. 1 (15 Marks) Q2/ Answer the following: 1- Derive the design equation for the direct evaluation of the diameter of a shaft to a desired fatigue safety factor, if the shaft subjected to both fluctuated…arrow_forwardUniversity Of Babylon College of Mussayb Automobile Production Quiz(2) 2024-205 Question one: List and defining the parameters of a robot Question Two List the functionalities of Robot Question Three: 1. What is the key factor that determines the feasibility of a robot's movements? oa) Speed ob) Stability c) Both speed and stability od) The type of control system used 2. What is the relationship between speed and stability in robot movements? oa) They are directly proportional b) They are inversely proportional c) They are independent of each other od) There is no relationship between them 3. Which two disciplines are closely related to robot movements? oa) Robotics and Mechanical Engineering o b) Robotics and Control c) Control and Computer Science od) Mechanical Engineering and Computer Science 4. Why is a powerful control system crucial for robots? 0 a) To increase the robot's speed ob) To improve the robot's stability o c) To maintain a balance between speed and stability od) To…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Automotive Technology: A Systems Approach (MindTa...Mechanical EngineeringISBN:9781133612315Author:Jack Erjavec, Rob ThompsonPublisher:Cengage Learning

Automotive Technology: A Systems Approach (MindTa...
Mechanical Engineering
ISBN:9781133612315
Author:Jack Erjavec, Rob Thompson
Publisher:Cengage Learning