OperatingSystem-Algorithms
OperatingSystem-Algorithms copied to clipboard
A GUIDE TO ALGORITHMS RELATED TO OPERATING SYSTEMS.
INDEX
- Basic UNIX Commands
- Shell Programming
- Child Processes
- CPU Scheduling Algorithms
- Bankers Algorithm - Deadlock prevention Algorithm
- Process Synchronization using semaphores
- Page Replacement Algorithms
- Dynamic Memory alocation algorithms
- Disk Scheduling Algorithms
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
- First Come First Serve (FCFS)
- Shortest Job First (SJF)
- Round Robin (RR)
- Priority
Process Synchronization
- Producer Consumer Problem
- Readers writers problem
- Dining philosophers problem
- cigarette smokers problem
Memory Allocation Algorithms
- First Fit
- Best Fit
- Worst Fit
Page Replacement Algorithms
- FIFO
- Optimal
- LRU
Disk Scheduling Algorithms
- FCFS
- SSTF
- SCAN
- C-SCAN
- LOOK
- C-LOOK