Andvanced Operating Systems

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/69

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:34 AM on 8/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

70 Terms

1
New cards

Operating System

is a software, which makes a computer to actually work.

2
New cards

OS

organizes and controls the hardware, acts as an interface between the application programs and the machine hardware.

3
New cards

Examples of OS

Windows, Linux, Unix and Mac OS

4
New cards

Two basic functions of operating systems

resource management and user friendliness

5
New cards

Resource management

A user program accesses several hardware and software resources during its execution.

6
New cards

Resource management(cont.)

Manages the resources and allocates them to users in an efficient and fair manner. It encompasses the following functions

7
New cards

Examples of Resource management

CPU, Main memory, 1/0 devices, and various types of software (compiler, linker-loader files, etc.).

8
New cards

User friendliness

It hides the unpleasant, low-level details and idiosyncrasies of bare H/W machine. It encompasses the following functions.

9
New cards

Functions of User friendliness

Execution environment (Process management- creation, control, and termination, file manipulation, interrupt handling, support for 1/0 operations. language support). Error detection and handling, Protection and security, Fault tolerance and failure recovery

10
New cards

Functions of Resource management

Time management {CPU and disks scheduling), Space management (main and secondary storages), Process Synchronization and deadlock handling, Accounting and status information.

11
New cards

Design Approaches

Deal with complexities of modern systems

12
New cards

Policies

What should be done

13
New cards

Mechanisms

How it should be done

14
New cards

Three common approaches

Layered Approach, Kernel Approach, Virtual Machine Approach

15
New cards

Layered Approach

Simplifies design, implementation and testing and Modular by dividing OS into functional layers.

16
New cards

Kernel Based Approach

contains a collection of primitives which are used to build the OS.

17
New cards

OS (Kernel)

implements policy

18
New cards

Kernel (Kernel)

implements mechanisms

19
New cards

Virtual Machine Approach

Virtual software layer over hardware, Illusion of multiple instances of hardware, Supports multiple instances of Oss

20
New cards

Types of Advanced OSs

Distributed, Multiprocessor, Database, Real-time

21
New cards

Distributed Operating Systems

Controls and manages resources for a network of autonomous computers, manage both hardware and software resources

22
New cards

Distributed Operating Systems

User not aware of program or resource location, Design issues same as traditional systems. Issues: lack of shared memory and lack of global clock

23
New cards

Multiprocessor Operating Systems

Consists of a set of processors that share a set of physical memory blocks, share a common clock, and "share" over an interconnection network.

24
New cards

Database Operating Systems

place increased demands on an operating system to efficiently support: concept of a transactions, manage large volumes of data, concurrency control, and system failure control.

25
New cards

Real-time Operating Systems

Place application specific special requirements on an operating system. Policies and mechanisms are geared to ensuring jobs meet their deadlines. Problem is one of resource scheduling and overall system utilization

26
New cards

Two privilege level

user level and system level

27
New cards

kernel space protected

requires special instruction sequence to change from user to kernel mode.

28
New cards

Process

compete for system resources blocks if cannot acquire a resource.

29
New cards

Kernel

manages resource - allocate resource to processes "optimally", implements policy for resource allocation (sharing) provide high-level abstract interface to resources.

30
New cards

Address space

memory locations accessible to process.

31
New cards

Virtual address space

memory, disk, swap or remote devices.

32
New cards

Exec

different programs may be run during the life of a process by calling ____.

33
New cards

Exit

processes typically terminate by calling ____.

34
New cards

Dwell defined hierarchy

one parent and zero or more child processes.

35
New cards

init process

is at the root of this tree.

36
New cards

Address Space

Dtext, data, stack, shared memory.

37
New cards

Control information (u area, proc)

Du area, proc structure, maps; kernel stack, Address translation maps, Credentials, user and group ids.

38
New cards

Hardware context

program counter, stack pointer, processor status word, memory management registers, FPU registers.

39
New cards

Process Control Block

Machine registers saved in u area's _____________ during context switch to another process.

40
New cards

U area

Part of user space (above stack), typically mapped to a fixed address, contains info needed while running, Can be swapped

41
New cards

Process

contains info needed when not running, not swapped out, traditionally fixed size table.

42
New cards

User ID

UID

43
New cards

Group ID

GID

44
New cards

Effective ID

file creation and access,

45
New cards

Real ID

real owner of process. Used when sending signals.

46
New cards

The Kernel

program that runs directly on the hardware loaded at boot time and initializes system, creates some initial system processes, remains in memory and manages the system.

47
New cards

Synchronous

kernel performs work on behalf of the process

48
New cards

System call interface (UNIX API)

central component of the UNIX API

49
New cards

Hardware exceptions

unusual action of process

50
New cards

Asynchronous

kernel performs tasks that are possibly unrelated to current process.

51
New cards

Hardware interrupts

devices assert hardware interrupt mechanism to notify kernel of events which require attention (1/0 completion, status change, real-time clock etc).

52
New cards

System processes

scheduled by OS.

53
New cards

Trap or Interrupt Processing

Hardware switches to kernel mode, using the per/process kernel stack. HW saves PC, Status word and possibly other state on kernel stack, Assembly routine saves any other information necessary and dispatches event.

54
New cards

Interrupt handling

Asynchronous event such as disk 1/0, network packet reception or clock "tick". Must be serviced in system context. Must not block.

55
New cards

Interrupt handling (cont)

Multiple interrupt priority levels (ipl), traditionally 0-7, User processes and kernel operate at the lowest ipl level, Higher level Interrupts can preempt lower priority ones.

56
New cards

Exception handling

Synchronous to the currently running process for example divide by zero or invalid memory access. Must run the current processes context.

57
New cards

Software Interrupts

Interrupts typically have the highest priority in system, are assigned priorities above that of user processes but below that of interrupts. typically implemented in software.

58
New cards

System Call Interface

Implemented as an assembly language stub, Trap into kernel dispatch routine which may save additional state and invoke the high-level system call.

59
New cards

Synchronization

Kernel is re-entrant, only one active process at any given time (others are blocked), Nonpreemptive, Blocking operations, masking interrupts.

60
New cards

Sleep()

When resource is unavailable (possibly locked), process sets flag and calls ______.

61
New cards

Switch()

sleep places process blocked queue, sets state to asleep and calls ______.

62
New cards

Wakeup()

when resource released _________ is called.

63
New cards

Dall

sleep processes are woken and state set to runnable (placed on the runnable queues).

64
New cards

Process Scheduling

Preemptive round-robin scheduling fixed time quantums priority is adjusted by nice value and usage factor. Processes in the kernel are assigned a kernel.

65
New cards

Signals

Asynchronous events and exceptions, Signal generation using the kill() system call, Default operation or user specific handlers, sets a bit in the pending signals mask in the proc structure

66
New cards

Fork ()

create a new process, copy of parents virtual memory ,parent return value is child's PIO, child return value is 0.

67
New cards

Exec ()

overwrite with new program.

68
New cards

Exit()

is called closes open files, releases other resources, saves resource usage statistics and exit status in proc structure, wakeup parent, calls switch.

69
New cards

Test-and-set

is a single indivisible machine instruction (TS}.

70
New cards

Lock-and-Key Synchronization

Process first checks if key is available If it is available, process must pick it up and put it in lock to make it unavailable to all other processes.