GithubHelp home page GithubHelp logo

ashiqar / operating-systems-lab-s4-ktu Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 1.7 MB

OS Lab Programs S4 KTU

Shell 7.60% C 92.40%
ktu operating-system os os-lab semaphores shell shell-script system-calls ktu-s4-cse shell-programs

operating-systems-lab-s4-ktu's Introduction

OperatingSystems_Lab_KTU_S4

Most of the programs specified in Operating Systems lab for CSE S4 KTU

Programs

Cycle 1 (Linux Commands)

Cycle 2 (Shell Script)

  1. Write a shell script that computes the gross salary of an employee according to the following rules:
    (i) if basic salary is < 1500 then HRA =10% of the basic and DA =90% of the basic.
    (ii) If basic salary is >=1500 then HRA =Rs.500 and DA=98% of the basic
  2. Write a shell script to print all armstrong numbers between two numbers.
  3. Write a shell script to find smallest of 3 numbers that are read from keyboard.
  4. Write a shell script to validate password strength. Here are a few assumptions for the password string:
    Length should be minimum of 8 characters.
    Should contain both small and capital case letters, atleast a digit and an underscore(_).
    If the password doesn't comply with any of the above conditions, then the script should report it as a "Weak Password".
  5. Write a shell script that generate all 3 digit numbers that contain only the digits 0, 1, 2, 3.(number does not start with 0)
  6. Write a shell script that finds the smallest prime number greater than n which is palindromic.
  7. Write a shell script that sort n numbers.
  8. Write a shell script that performs linear search.
  9. Write a shell script that print the following pattern upto n rows, for a given n.
    1
    2 2
    3 3 3
    4 4 4 4
    .
    .
    n n n n n ..
  10. Write a shell script that prints the diamond pattern upto n rows, for a given n.
  11. To write a shell script that accepts one or more file name as arguments and converts them to uppercase, provided they exist in the current directory.
  12. Write a shell script which accepts any number of arguments and prints them in the reverse order.

Cycle 3 (System Calls)

  1. Program to illustrate fork, getpid, exit, wait
  2. Program illustrating exec
  3. Program illustrating stat
  4. Program illustrating opendir, readdir,close

Cycle 4 (I/O System calls)

  1. Program implementing open, read, write and close

Cycle 5 (CPU Scheduling Algorithms)

  1. Round Robin Scheduling
  2. First Come First Serve Scheduling
  3. Shortest Job First Scheduling
  4. Priority Scheduling

Cycle 6 (IPC using shared memory)

  1. Program to write into the memory
  2. Program to read from memory

Cycle 7 (Semaphores)

  1. Dining Philosophers Problem.
  2. Readers Writers Problem.

Cycle 8 (Memory Allocation)

  1. Implement memory allocation for fixed partitions using the following methods:
    First Fit Allocation
    Best Fit Allocation
    Worst Fit Allocation

Cycle 9 (Page Replacement Algorithms)

  1. Implement Page Replacement Algorithms:
    FCFS
    LRU
    LFU

Cycle 10

  1. Implement Banker's Algorithm for Deadlock Avoidance.
  2. To implement the deadlock detection algorithm for deadlock detection with resource request.

Cycle 11 (Disk Scheduling Algorithms)

  1. To simulate the disk scheduling algorithms

Contributions

If any Issues, feel free to open an issue or contact me at my email
Contributions are welcome. Please open an issue or a pull request to contribute.

Star the repository if you like it. Thanks! ๐Ÿ˜„

operating-systems-lab-s4-ktu's People

Contributors

ashiqar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.