Operating Systems 173323 (3 cu)

Week 44

Exercise 3

  1. Show in cs-computer and in Linux system how to use man, man -k, apropos, whatis commands to search information from manual pages.

  2. Use who and sort commands to produce a sorted list of usernames of users who are in cs-computer.

  3. Implement task 2 as a c-program, in which who and sort are executed in separate child processes and the communication between child processes is done using pipes. Do it so that who writes to a pipe and sort reads from a pipe. You can also use dup or dup2 commands to redirect the streams for reading and writing.

  4. Find out the manual page which tells which process scheduler is used in Unix system. Which process scheduler it is ?