Lecture 1: Introduction to Operating Systems

0.0(0)
studied byStudied by 0 people
full-widthCall with Kai
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/58

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

59 Terms

1
New cards

Operating System

A program that controls the execution of application programs and acts as an interface between the user of a computer and the computer hardware.

2
New cards

Operating System

A software that manages a computer's hardware

3
New cards

operating system

is the one program running at all times on the computer (usually called kernel), with all else being application programs;

4
New cards

Kernel

The most important part of the operating system. It is the primary interface between the hardware and the processes of a computer.

5
New cards

Components of a computer system

- Hardware

- Application Programs

- Operating System

- Users

6
New cards

Hardware

The central processing unit (CPU), the memory, and the I/O devices provides the basic computing resources for the system.

7
New cards

Application Programs

Word processors, compilers, web browsers define the ways in which these resources are used to solve users' computing problems.

8
New cards

Operating System

Controls the hardware and coordinates its use among the various application programs for the various users.

9
New cards

Users

Users of a computer system.

10
New cards

Abstract view of the components of a computer system.

users

application programs

operating system

computer hardware

11
New cards

Computer System Organization

Typically, operating systems have a device driver for each device controller.

12
New cards

Device driver

This _____ understands the device controller and provides the rest of the operating system with a uniform interface to the device.

13
New cards

General-purpose computers

run most of their programs from rewritable memory, called main memory (also called RAM or Random-Access Memory).

14
New cards

Main Memory

It is a flexible and volatile type of storage device.

15
New cards

Main Memory

It is commonly implemented in a semiconductor technology called DRAM (Dynamic Random-Access Memory).

16
New cards

Bytes

All forms of memory provide an array of _______. Each ______ has its own address.

17
New cards

Load instruction

Moves a byte or word from main memory to an internal register within the CPU.

18
New cards

Store instruction

Moves the content of a register to main memory.

19
New cards

Storage-device hierarchy

registers

cache

main memory

nonvolatile memory

hard-disk drives

optical disk

magnetic tapes

20
New cards

Resource Manager

An operating system is a ______.

21
New cards

Resources that the operating system must manage

The system's CPU, memory space, file-storage, and I/O devices are among the resources that the operating system must manage.

22
New cards

Resource Management in OS

1. Process Management

2. Memory Management

3. File-System Management

4. Mass-Storage Management

5. Cache Management

6. I/O System Management

23
New cards

Process

A program in execution.

24
New cards

Process

- a program such as compiler is a process

- a word-processing program being run by an individual user on a PC is a process

25
New cards

resources

A process needs certain _______ --- it includes CPU time, memory, files, and I/O devices --- to accomplish its task.

These are typically allocated to the process while it is running.

26
New cards

initialization data

In addition to the physical and logical resources that a process obtains when it is created, various _______ (input) may be passed along.

27
New cards

passive entity, active entity

A program is a __________, like the contents of a file stored on disk, whereas a process is an ____________.

28
New cards

sequential

The execution of such a process must be _______.

The CPU executes one instruction of the process after another, until the process completes.

29
New cards

Process

It is the unit of work in a system. A system consists of collection of processes, some of which are operating-system processes and the rest of which are user processes.

30
New cards

The operating system is responsible for the following activities in connection with process management:

1. Creating and deleting both user and system processes;

2. Scheduling processes and threads on the CPUs;

3. Suspending and resuming processes;

4. Providing mechanisms for process synchronization;

5. Providing mechanisms for process communication;

31
New cards

Main Memory

Central to the operation of modern computer system.

32
New cards

Main Memory

A repository of quickly accessible data shared by CPU and I/O devices.

33
New cards

Main Memory

Generally the only large storage device that the CPU is able to address and access directly.

For example, for the CPU to process data from disk, those data must first be transferred to main memory by CPU-generated I/O calls. These instructions must be in memory for the CPU to execute them.

34
New cards

Memory Management

To improve both utilization of the CPU and the speed of the computer's response to its users, general-purpose computers must keep several programs in memory, creating a need for ________.

35
New cards

The operating system is responsible for the following activities in connection with memory management:

1. Keeping track of which parts of memory are currently being used and which process is using them;

2. Allocating and de-allocating memory space as needed; and

3. Deciding which processes and data to move into and out of memory.

36
New cards

File Management

One of the most visible components of an operating system.

37
New cards

secondary storage, tertiary storage

Physical media such as ______ is the most common, but ______ is also possible.

38
New cards

File

A collection of related information defined by its creator.

39
New cards

files

Commonly, _____ represent programs (both source and object forms) and data.

40
New cards

Data files

may be numeric, alphabetic, alphanumeric or binary.

41
New cards

Files

may be free-form like text files or formatted rigidly such as mp4 file format.

42
New cards

The operating system is responsible for the following activities in connection with file management:

1. Creating and Deleting Files;

2. Creating and Deleting directories to organize files;

3. Supporting primitive for manipulating files and directories;

4. Mapping files onto mass storage; and

5. Backing up files on stable (non-volatile) storage media.

43
New cards

HDDs and NVM devices

Most modern computer systems use _______ as the principal on-line storage media for both programs and data.

Most programs --- including compilers, web browsers, word processors, and games --- are stored on these devices until loaded into memory.

44
New cards

Secondary Storage

Since _____ is used frequently and extensively, it must be used efficiently.

45
New cards

The operating system is responsible for the following activities in connection with secondary storage management:

1. Mounting and un-mounting;

2. Free-space management;

3. Storage allocation;

4. Disk scheduling;

5. Partitioning; and

6. Protection

46
New cards

Caching

An important principle of computer systems. Information is normally kept in some storage system (such as main memory).

47
New cards

Cache

As it is used, it is copied into a faster storage system --- on a temporary basis.

48
New cards

caches, cache management

Because _____ have limited size, _______ is an important design problem.

49
New cards

Operating System

One of the purposes of an ________ is to hide the peculiarities of specific hardware devices from the user.

For example, in UNIX, the peculiarities of I/O devices are hidden from the bulk of the operating system itself by the I/O subsystem.

50
New cards

The I/O subsystem consists of several components:

1. A memory-management component that includes buffering, caching, and spooling;

2. A general device-driver interface; and

3. Drivers for specific hardware devices.

51
New cards

Types of Operating Systems

1. Batch Operating System

2. Multiprogramming Operating Systems

3. Multiprocessing Operating System

4. Multitasking Operating System

5. Time-Sharing Operating System

6. Distributed Operating System

7. Network Operating System

8. Real-time Operating System

52
New cards

Batch Operating System

This type of operating system does not interact with the computer directly.

An operator is present which takes similar jobs having the same requirement and groups them into batches.

53
New cards

Multiprogramming Operating Systems

can be illustrated as more than one program is present in the main memory and any of them can be kept in execution.

As a result, various jobs may share CPU time.

54
New cards

Multiprocessing Operating System

A type of operating system in which more than one CPU is used for the execution resources.

55
New cards

Multitasking Operating System

Simply a multiprogramming operating system with having facility of a Round-Robin Scheduling Algorithm.

It can run multiple programs simultaneously.

56
New cards

Time-Sharing Operating System

Each task is given some time to execute so that all the tasks work smoothly.

Each user gets the time of the CPU as they use a single system.

The task can be from a single user or different users.

57
New cards

Distributed Operating System

It use many central processors to serve multiple real-time applications and users.

Independent systems process their own memory unit and CPU.

58
New cards

Network Operating System

These systems run on a server and provide the capability to manage data, users, groups, security, applications, and other networking functions.

These types of operating systems allow shared access to files, printers, security, applications, and other networking functions over a small private network.

59
New cards

Real-time Operating System

These types of OS serve real-time systems.

Real-time systems are used when there are time requirements that are very strict like missile systems, air traffic control systems, robots, etc.