Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary Useful Notes on OS

Rating
-
Sold
-
Pages
10
Uploaded on
11-08-2023
Written in
2022/2023

Master Operating Systems: Explore process sync, memory mgmt, disk scheduling. Clear concepts, optimize resource use. Ideal for tech learners.

Institution
Course

Content preview

Operating Systems

An operating system (OS) is software that manages computer hardware and
software resources and provides common services for computer programs.

The purpose of an operating system is to make the computer system convenient
to use and efficient. It does this by:

Managing hardware resources, such as the CPU, memory, and storage devices.
Providing a user interface, such as a graphical user interface (GUI) or a
command-line interface (CLI).
Managing files and directories, such as creating, deleting, and moving files.
Scheduling tasks, such as determining which process should run on the CPU
next.
Providing inter-process communication, such that processes can share data and
resources.

Types of Operating Systems

There are many different types of operating systems, each with its own
strengths and weaknesses. Some of the most common types of operating
systems include:

● Batch operating systems are designed for running long-running jobs that
do not require interaction with the user.
● Multiprogramming operating systems allow multiple programs to be
loaded into memory at the same time and to be executed concurrently.
● Multitasking operating systems allow multiple programs to be executed
concurrently and to interact with the user.
● Time-sharing operating systems allow multiple users to interact with the
computer system at the same time.
● Real-time operating systems are designed for systems that require
guaranteed response times, such as air traffic control systems.
Processes
● A process is a program that is currently running. Each process has its own
memory space, program counter, and other resources.


, ● The Process Control Block (PCB) is a data structure that stores
information about a process, such as its state, priority, and resources.

Process Scheduling
Process scheduling is the process of determining which process should run
on the CPU next. There are many different scheduling algorithms, each
with its own advantages and disadvantages.

Some of the most common scheduling algorithms include:

First-come, first-served (FCFS):
The process that has been waiting in the queue the longest is the next
process to run.
Shortest job first (SJF):
The process with the shortest predicted execution time is the next process
to run.
Round robin (RR):
Each process is given a time slice to run, and the next process is chosen
when the time slice expires.
Priority scheduling:
Processes are chosen to run based on their priority.
Real-time scheduling:
Processes with deadlines are chosen to run first.
The choice of scheduling algorithm depends on the specific requirements of the
system. For example, FCFS is a simple and fair algorithm, but it may not be
efficient if there are many processes waiting in the queue. SJF is a more
efficient algorithm, but it may not be fair if there are processes with different
priorities. RR is a good compromise between efficiency and fairness. Priority
scheduling is a good choice for systems with real-time requirements.

Threads

A thread is a lightweight process that forms the basic unit of CPU utilization. A
process can perform more than one task at the same time by including multiple
threads.
Each thread has its own program counter, register set, and stack.

Written for

Course

Document information

Uploaded on
August 11, 2023
Number of pages
10
Written in
2022/2023
Type
SUMMARY

Subjects

$10.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
arjunp

Get to know the seller

Seller avatar
arjunp VIT
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions