Operating System Lab


AUTUMN 2017-18
Section A (Tuesday 3:00-6:00 PM)

Venue: Room-5119, CC3 Building





Course Objective:

The goal of this course is to have students understand and appreciate the principles in the design and implementation of operating systems software.

Lab Course Outline:


Introduction to operating systems concepts, process management, memory management, file systems, virtualization, and distributed operating systems. The laboratory exercises will include familiarization with UNIX system calls for process management and inter-process communication; Experiments on process scheduling and other operating system tasks through simulation/implementation. Finally, the students would require to apply the operating system concepts by experimenting on either xv6/minix operating systems.





1.      Abraham Silberschatz Peter B. Galvin and Greg Gagne, Operating System Concepts, Wiley 8th Edition, 2008.

2.      Garry. J. Nutt, Operating Systems: A Modern Perspective, Addison-Wesley

3.      Andrew S. Tanenbaum and Herbert Bros, Modern Operating Systems (4th Edition), Pearson

4.      Russ Cox, Frans Kaashoek, Robert Morris , xv6: a simple, Unix-like teaching operating system",Revision 8 [Download]

5.      Sumitabha Das , UNIX Concepts and Applications, Tata McGraw-Hill





Important Instructions:

3.         The laboratory assignments will be mainly implementation-oriented which have to be coded in C and will be based on the topics discussed in theoretical lectures.

2.         Every student is expected to have access to at least the book by Silberschatz-Galvin-Gagne.

3.         Attendance in lab classes is mandatory. If the attendance of a student falls below 75%, he/she may expect a "F Grade"

4.         The course will consist of laboratory assignments given during the class. All assignemnts have to be done very seriously. Performance during class assignemnts not only carries wieghtage for grades, they also help in preparing for the lab exam. If a student does not submit the clas assignments or in non-responsive during viva, his/her may expect a "F" grade. .

5.         Grading Policy :

o   30%: Implementation of the assignment and VIVA (each day)

o   60%: Lab exams (2 pre mid-sem and 2 post mid-sem)

o   10%: Attendance




Lab Assignments:


Sl. No.



Helpful Resources


Introduction(Working with Linux - Shell Scripting)

Assignment 1

Book on Bash Scripting


System Calls

Assignment 2

Linux System Calls on File Management


Process Management


fork_execute.c  fork_test.c  fork-01.c
fork-02.c  fork-03.c  fork-04.c fork-05.c 
orphan_process.c zombie_process.c


Scheduling Algorithms



Multi Threading Using pthread library


thread_example.c  print-rand-matrix.c  c-timer.c


Inter Process Communication : Shared Memory and Pipe


Lecture notes on IPC  
shared memory  
pipe  pipe_example.c  
read-write1.c  read-write2.c


Process/Thread Synchonization


Synchronizing Threads  read-write3.c  read-write4.c


Working with xv6

Exercises on xv6