Operating System Basics

Operating System Basics

ยท

2 min read

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 ๐Ÿ”—

https://linkfree.eddiehub.io/uddinArsalan?fbclid=PAAaa-NjOdKP_ITAB7C5MZkGsdQP_tRvPmR0OO7f3ulw4F1ImUw4AqsYofVO0

ย