initial import
[staff/goc4/2018bti7061.git] / c-project / INSTRUCTIONS.txt
1 You are to implement a C tool similar to "ps x -o pid,comm,rss"
2 that will show for each process that shares your user ID the amount of
3 memory it is using. Scan the /proc directory to find all active
4 processes by their process ID (PID). You can find all of the
5 information you need for each process under /proc/$PID/status, in
6 particular the lines "Name", "Uid" and "VmRSS".
7
8 Your output should list on seperate lines the PID, binary name of the
9 process and the resident set size (RSS), separated by spaces.
10 Your process must return 0 upon successful completion.
11
12 Your C program must be called "ps.c". You will be graded for style
13 (compiler warnings (-Wall), memory leaks, etc.) as well as for correct
14 output.
15
16 Test your program using the "test.sh".