Operating System(OS)
Operating System Program Examples
Here below are some programs related to Operating System(OS) concepts and theories.
- Write a program in c (using fork( ) and/or exec( ) commands) where parent and child execute:
a) Same program, same code.
b) Same program, different code.
c) before terminating, the parent waits for the child to finish its task. - Write a c program to report behavior of Linux kernel including kernel version, CPU type and model. (CPU information)
- Write a c program to report behavior of Linux kernel including information on configured memory, amount of free and used memory. (memory information)
- Write a c program to print file details including owner access permissions, file access time, where file name is given as argument.
- Write a c program to copy files using system calls.
- Write a program to simulate a simple deadlock detection algorithm using the resource allocation graph.
- Write a program using C to implement First-Come, First-Served (FCFS) scheduling algorithm.
- Write a program using C to implement Round Robin scheduling algorithm.
- Write a program using C to implement Shortest Job First (SJF) scheduling algorithm.
- Write a program using C to implement non-preemptive priority based scheduling algorithm.
- Write a program using C to implement preemptive priority based scheduling algorithm.
- Write a program using C to implement Shortest Remaining Time First (SRTF) scheduling algorithm.
- Write a program using C to implement first-fit, best-fit and worst-fit allocation strategies.