Git Product home page Git Product logo

operatingsystem-algorithms's Introduction

INDEX

Basic UNIX Commands

  • w
  • who
  • uptime
  • pwd
  • ls
  • mkdir
  • cd
  • vi
  • head
  • rmdir
  • df
  • du
  • top
  • cp
  • who -Hu-
  • cal
  • tty
  • cal {year}
  • wc
  • bc
  • tail
  • man
  • passwd
  • xcalc
  • history
  • logout
  • exit

Shell Programming

  • echo "..."
  • read <VAR_NAME>
  • read -p "" <VAR_NAME>
  • expr 10 + 20
  • $(( a+b ))
  • [ a == b ]
  • if [ ... ]; then ... else ... fi
  • for((i=0;i<=n;i++)) { ... }
  • case "ch" "a") ... ;; "b") ... ;; *) ... ;; esac

Child Processes

  • Child process using fork()
  • Orphan process
  • Zombie process

CPU Scheduling Algorithms

  1. First Come First Serve (FCFS)
  2. Shortest Job First (SJF)
  3. Round Robin (RR)
  4. Priority

Process Synchronization

  1. Producer Consumer Problem
  2. Readers writers problem
  3. Dining philosophers problem
  4. cigarette smokers problem

Memory Allocation Algorithms

  1. First Fit
  2. Best Fit
  3. Worst Fit

Page Replacement Algorithms

  1. FIFO
  2. Optimal
  3. LRU

Disk Scheduling Algorithms

  1. FCFS
  2. SSTF
  3. SCAN
  4. C-SCAN
  5. LOOK
  6. C-LOOK

operatingsystem-algorithms's People

Contributors

madhavbahl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

operatingsystem-algorithms's Issues

The code doesn't show exact output

when the process once got allocated,it again searches to another block of size greater.
The modification should be done as given below:
The flag should be used which checks for the process which is already allocated into the block.
int flag1[n];
for(i=0;i<n;i++)
{
flag1[i]=0;
}
for(i=0;i<n;i++){
for(j=0;j<nb;j++) {
if(blockSize[j]>=jobSize[i] && blockSize[j]>0 && flag1[i]==0) {
alloc[i]=j;
flag1[i]=1;

            blockSize[j]=blockSize[j]-jobSize[i];
            
        }
    }

}

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.