In this blog we are going to learn about the some basic terminologies and scheduling algorithms of Operating System .
๐ข๐ฝ๐ฒ๐ฟ๐ฎ๐๐ถ๐ป๐ด ๐๐๐๐๐ฒ๐บ
What is an Operating System?
An operating system is a system program which helps in the management of hardware. It is an interface between a user program and a hardware.
Functions of OS
Memory Management
Resource Management
CPU scheduling
Coordination between Users and Other Software
Security
Process Management
What is ๐ท๐๐๐๐๐๐ ?
- A ๐ท๐๐๐๐๐๐ is a program in execution.
What is ๐ง๐๐ฟ๐ป ๐ฎ๐ฟ๐ผ๐๐ป๐ฑ ๐๐ถ๐บ๐ฒ ?
- A Turn around time is the time taken by a process to complete it's execution ( including the waiting time, to be assigned by CPU) ๐ง๐๐ฟ๐ป ๐ฎ๐ฟ๐ผ๐๐ป๐ฑ ๐๐ถ๐บ๐ฒ = Completion time - Arrival time
๐urst ๐ime = Turn around time - Waiting time
๐๐จ๐ฆ๐ฉ๐ฅ๐๐ญ๐ข๐จ๐ง ๐ญ๐ข๐ฆ๐
- The time at which process completes it's execution
Arrival time
- Time at which the process enters in a ready queue.
Waiting Time - Time for which a process keeps in a running queue and waiting for its execution
What is a ๐ป๐๐๐๐๐ ?
A Thread is a lightweight process
A process can perform more than one task by including multi threading .
๐ฆ๐ฐ๐ต๐ฒ๐ฑ๐๐น๐ถ๐ป๐ด ๐๐น๐ด๐ผ๐ฟ๐ถ๐๐ต๐บ๐ :
- First Come First Serve(FCFS)
- In this scheduling algorithm a process which has a least arrival time executes first till it's completion and rest of the process waits in the memory pool or in running
Shortest Job First (SJF)
- In this algorithm, a process which takes less time for its execution executes first ( a process having least Bash time from all of the processes)
Priority Based scheduling
- In this algorithm, processes are given priorities, and are scheduled according to the priorities In case two process have the same priorities they are executed on the basis of FCFS scheduling
This is the end of the blog in this we discuss some basic terminologies and scheduling algorithms related to Operating System which come across several times
Social Media Links ๐