WHAT TO SUBMIT: A one to two page summary of your understanding of the schedulers in your handwriting.
NOTE: You are allowed to discuss the papers with each other and understand the papers. You are also allowed to analyze the papers together. You are NOT ALLOWED to copy the final summary from each other.
CAUTION: ALL ASSIGNMENTS FOUND TO BE COPIES OF EACH OTHER WILL BE GIVEN ZERO regardless of who copied from whom.
Otherwise, it executes and prints the output of the command. Remember that a shell does a fork() and exec() to execute the command given. You need to do the same. You need to be able to accept any command line arguments given for the command and pass them to exec(), just as a shell program does.
NOTE: Remember that the cd command has to be implemented differently.
Grading Policy: If the program segment faults or results in zombie processes or hangs, you will lose marks accordingly.
Please refer to the previous page on Assignment submission policy. Also, read the coding guidelines given below and follow them. Any code which does not follow the coding guidelines is likely to lose marks.
Please read the Coding Guidelines and make sure you follow these guidelines.
Use gcc -Wall as the compile command in your Makefiles.
CAUTION: Make your code as modular as you can get it to. You will be adding features to the shell, esp. once IPC is done.
Understand the entries and the contents of various files in this directory /proc.
Write a program to read the /proc filesystem and print the following for all the processes listed there:
PID, PPID, STATE, COMMAND, No. of Files open
Since for all the root or privileged processes, you are not allowed to read the no. of files open, print NA for those. For all user processes, print the no. of files open.
Below are some Hints for the assignment.