CSCI 340 Operating Systems Principle
Check the Unix Handout and go over the section about Processes -section 17. The action of each shell, the mechanism of how it executes commands and programs, how it handles the command and program I/O and how it is programmed, are affected by the settings of certain environment variables. Learn about the pscommand using man (type man ps) Give a list of possible states together with their significance. Identify your login shell. Type ps –land explain the significance of: F, S, UID, PID, PPID, C, PRI, NI, ADDR, SZ, WCHAN, TTY, TIME, CMD fields. Use the topcommand to monitor the CPU activity in real time. It displays the status of the first 15 of the most CPU-intensive task on the system as well as the CPU activity. To stop the execution of top enter . Give the total number of tasks, number of running processes, sleeping processes, stopped processes and zombies. Identify the shell process. Use the “regular” kill command to terminate the shell. Use the “sure kill” command to terminate the shell. Explain. PART E Use Internet sources and give an overview of the command that is used in Windows for creating a process.