UOS Ass List 2012 13
UOS Ass List 2012 13
Assignment list
Note:
1. All programs on Linux using either in C/JAVA/Shell programming/python.
2. Write up should stick to program objective (title, subtitle, theory, application system
call, system call used, variable/data dictionary flowcharts and conclusions). Sample
template is given at the end of the assignment list. Use appropriate tool like
BAKOMA, Lyx, winedit etc. (Lyx Template will be available on ftp/moodle)
3. Write up should stick to program objective (theory, system call used, variable
dictionary and application system call)(soft copy submission allowed in latex only)
4. Submit any two from a, b, c… if you solve all, bonus mark will be given.
5. Assignment 10, 11 and 12 are optional.
2. IPC: Interrupts and Signals: signal(any fives type of signal ), alarm, kill,
raise, killpg, signal , sigaction, pause
Objectives:
1. To learn about IPC through signal.
2. To know the process management of Unix/Linux OS
3. Use of system call to write effective application programs.
a. Write the program to show file statistics using the stat system call.
Take the filename / directory name from user including path. (B)
b. Write the program to show file statistics using the fstat system
call. Take the file name / directory name from user including path.
Print only inode no, UID, GID, FAP and File type only. (B)
c. Write a program to use link/unlink system call for creating logical
link and identifying the difference using stat. (I)
d. Implement a program to print the various types of file in Linux.
(Char, block etc.) (E)
Ref: System call search
B. File locking system call : fnctl.h: flock/lockf (Optional)
Objectives:
1. To learn about File locking-mandatory and advisory
locking.
11. IPC: MPI(C library for message passing between processes of different
systems) Distributed memory programming. (Optional)
Objectives:
1. To learn about IPC through MPI.
2. Use of IPC mechanism to write effective application
programs.