
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Various aspects of operating systems and virtual memory, including obtaining system call traces in linux, writing a shell program, analyzing page tables, and investigating page faults using the linux time command.
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Module 3 (Lectures 11- 15 ) Introduction to Operating Systems and Virtual Memory
shell’ is a program that does command interpretation. It takes commands typed in by a user and causes them to be executed. Thecommand’ could be the name of an existing executable program or one of several shell commands’ provided by the shell program. You might have used a shell (such as csh, tcsh or bash) before. Write a shell program that can do the following: It should prompt the user for input. The user could respond with the full file name of an executable program file he/she wishes to execute, where the file name would be terminated by the ampersand character (&’) to indicate immediate re-prompt (a feature that is supported by many shells). In addition, your shell program should be capable of responding to the following shell commands that the user can also type in (the meaning of each is given as a comment): prompt ‘string’ / change the shell prompt to the string provided exit / terminate shell !! / re-execute the previous command time / print current time