Operating Systems OS Lab PCCSL407 Semester 4 KTU BTech CS 2024 Scheme - Dr Binu V P
About Me
Learn about the Linux Operating system Before You Start
Learn The Operating System Theory
Experiments
1.Familiarisation of Basic commands for OS programming(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
7. Learn Inter process Communication ( Summary)
8.Mutlithreading
9.CPU Scheduling
10.Process synchronization using Semaphores
15.Page Replacement Algorithms
16.Disk Scheduling Algorithms
Comments
Post a Comment