Lab Manual O S 2014
Lab Manual O S 2014
MIT/CSE/LM/05/R0
PART I
Objectives: To learn LINUX commands, shell functionality and LINUX system calls,
shell programming and usage of VI editor.
WEEK 1:
UNIX for non-programmers: Testing the use of LINUX commands such as date, clear, chmod,
man, mail, passwd, pwd, cat, ls, mv, mkdir, cd, rm, rmdir, wc etc, introduction to Vi editor.
WEEK 2:
UNIX shell: Illustration of shell function such as wild cards, redirection, pipes, sequencing,
grouping, background processing, command substitution, sub shells.
WEEK 3:
Shell programming: Write shell scripts with the help of variables, loops (for, while), and
conditional statements (if else, case). Shell variables, arguments to shell procedure, test
command, arithmetic with EXPR command, interactive shell procedures with read.
WEEK 4:
LINUX system calls: C programs to illustrate the use of various LINUX system calls.
File system calls: Open( ), close( ), creat( ), read( ), write( ), dup( ), lseek( ).
Process Management System calls: Fork( ), exec( ), exit( ), wait( ), signal( ), kill( ), alarm( ).
PART II
Objectives: Simulation of OS Algorithms
WEEK 5 AND 6:
CPU scheduling algorithms: To calculate the turnaround time and waiting time of each process
along with average turnaround and waiting times using the following scheduling algorithms.
FCFS
Shortest Job First Scheduling (non-pre-emptive & pre-emptive)
Priority Scheduling (non-pre-emptive & pre-emptive)
Round Robin scheduling (Pre-emptive)
WEEK 7 AND 8:
Deadlock detection and avoidance algorithms:
Simulate the following algorithms assuming that given m resource types, n processes and
allocation, request and available matrices.
Deadlock avoidance using Bankers algorithm.
Deadlock detection using Bankers algorithm.
FCFS
SSTF
SCAN
LOOK
CSCAN
WEEK 12:
LINUX System V IPC (Inter Process Communication)
Write and execute programs using each of the following IPC mechanisms:
Pipes
Messages
Unix sockets
List of Reference Books :
1)
2)
3)
4)
PART III
Application Development for Android Operating
System
Note : All the students need to design and develop an application for Android. There is
tremendous opportunity for Android Developers. The application will carry total of 10
marks. Few of the application titles are shown below. However, this list is not
comprehensive. You can conceptualize and develop an application which is not in this
list.
1. Displaying current Date and Time on the screen and options for changing date and
time.
2. A suitable application which has menus representing various actions. On clicking
the menu, takes onto screens with Radio, Edit and List boxes.
3. A screen with options for browsing various sites. Here the Application should
embed a Web browser.
4. A screen which shows progress bar. The progress bar can show progress of
download information or file download activity.
5. Displaying the map given the latitude and longitude.