Question: Write a program (using fork() and/or exec() commands) where parent and child execute: a) same program, same code. b) same...
Operating System Practicals
Syllabus with topics linked
Write a program to report behaviour of Linux kernel including kernel version, CPU type and model. (CPU information)
Input #include<stdio.h> #include<stdlib.h> #include<sys/utsname.h> using namespace std; int main() { int m=0; struct utsname s1;...
Write a program to report behaviour of Linux kernel including information on 19 configured memory, amount of free and used memory. (memory information)
Input #include<stdio.h> #include<sys/sysinfo.h> #include<stdlib.h>...
Write a program to print file details including owner access permissions, file access time, where file name is given as argument
Input #include<iostream> #include<fcntl.h> #include<sys/stat.h> using namespace std; int main(int argc , char *argv[]) { char...
Write a program to copy files using system calls
Input #include<iostream> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include...
Write a program to implement FCFS scheduling algorithm
Input #include<iostream> using namespace std; struct Process{ public: int pid; int arrival_T; int burst_Time; int response_Time; int...
Write a program to implement Round Robin scheduling algorithm
Input #include<iostream> #include<conio.h> #include<iomanip> using namespace std; struct Process{ int pid; int burst_time; int...
Write a program to implement SJF scheduling algorithm
Input #include<iostream> #include<algorithm> #include<bits/stdc++.h> using namespace std; struct Process { int...
Write a program to implement non-preemptive priority based scheduling algorithm
Input #include<iostream> #include<iomanip> #include<conio.h> using namespace std; struct Process { int pid; int burst_time; int...
Write a program to implement preemptive priority based scheduling algorithm
Input #include<iostream> #include<iomanip> #include<conio.h> using namespace std; struct Process { int pid; int burst_time; int...
Write a program to implement SRJF scheduling algorithm
Input #include<iostream> #include<iomanip> using namespace std; struct Process { int pid; int burst_time; int waiting_time; int...
Write a program to calculate sum of n numbers using thread library
Input #include<pthread.h> #include<stdio.h> #include<thread> #include<iostream> #include<cstdlib> using namespace std; void...
Write a program to implement first-fit, best-fit and worst fit allocation strategies
Input #include<iostream> using namespace std; class Allocation_Strategies { int block_no; int process_no; int smallest; int b_id[100];...