Homework 2
Due Monday Sep. 9, 11:59pm
55 points
- (10 points) Which of the following
instructions should be privileged?
- Set value of the interval timer.
- Read the time-of-day clock.
- Set the time-of-day clock.
- Clear arbitrary memory.
- Turn off interrupts.
- Switch from user to monitor mode.
- (10 points) What is the purpose of system
calls?
- (10 points) What is the purpose of system
programs?
- (10 points) (Textbook exercise 2.7)
- What is the purpose of the command interpreter?
- Why is it usually separate from the kernel?
- Would it be possible for the user to develop a new command
interpreter using the system-call interface provided by the
operating system?
Answer these questions (5 points each) by consulting the man
pages on pyrite.
- What does the
-S option do to the output
of the command ls?
- What does the utility
tr do?
- What do the
head and tail
utilities do?
Please name your file hw2.txt and use
turnin352 hw2