Skip to content

jarvis-1805/OPERATING-SYSTEM

Repository files navigation

OPERATING-SYSTEM

Author

Shubhang Gupta (19/78098)

OS Practical Questions

  1. Write a program (using fork() and/or exec() commands) where parent and child execute:

    1. same program, same code.
    2. same program, different code.
    3. before terminating, the parent waits for the child to finish its task.
  2. Write a program to report behaviour of Linux kernel including kernel version, CPU typeandmodel.(CPUinformation)

  3. Write a program to report behaviour of Linux kernel including informationon 19 configured memory, amount of free and used memory. (memory information)

  4. Write a program to print file details including owner access permissions, file access time, where file name is given as argument.

  5. Write a program to copy files using system calls.

  6. Write a program to implement FCFS scheduling algorithm.

  7. Write a program to implement Round Robin scheduling algorithm.

  8. Write a program to implement SJF scheduling algorithm.

  9. Write a program to implement non-preemptive priority based scheduling algorithm.

  10. Write a program to implement preemptive priority based scheduling algorithm.

  11. Write a program to implement SRJF scheduling algorithm.

  12. Write a program to calculate sum of n numbers using thread library.

  13. Write a program to implement first-fit, best-fit and worst-fit allocation strategies.