Operating Systems OS Lab PCCSL407 Semester 4 KTU BTech CS 2024 Scheme - Dr Binu V P


 About Me

Scheme and Syllabus

Learn about the Linux Operating system Before You Start

Learn The Operating System Theory

Experiments

1.Familiarisation of Basic commands for OS programming
    ps
    top
    strace
    fuser
    time
    gdb
    strings
    objdump
    nm
    file
    od
    xxd

2.Use /proc file system to gather basic information about your machine:

(a) Number of CPU cores
(b) Total memory and the fraction of free memory
(c) Number of processes currently running.
(d) Number of processes in the running and blocked states.
(e) Number of processes forked since the last bootup. How do you compare this value with the one in (c) above?
(f) The number of context switches performed since the last bootup for a particular process.

Write a simple program to print the system time and execute it. Then use the /proc file system to determine how long this program(in the strict sense,the corresponding process) ran in user and kernel modes.

Creating Process


Running another process

5.Write a program to add two integers(received via the commandline)and compile it to an executable named “myadder”. Now write another program that creates a new process using a fork system call. Make the child process add two integers by replacing its image with the “myadder” image using execvp system call.

Synchronization



    


8.Mutlithreading 


9.CPU Scheduling




10.Process synchronization using Semaphores



12.Banker’s Algorithm -Finding deadlock occurrence

13.Deadlock-free semaphore-based solution for the dining philosopher’s problem


15.Page Replacement Algorithms


16.Disk Scheduling Algorithms

Lab Cycles


Comments

Popular posts from this blog

Exploring the /proc file system

ps command