Top Banner
Final Review Final Review Monday, May 5th Monday, May 5th
24

Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Dec 20, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Final ReviewFinal Review

Monday, May 5thMonday, May 5th

Page 2: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Functional ComponentsFunctional Components

Process Manager: creates/removes Process Manager: creates/removes processesprocesses

Scheduler: allocates processes to Scheduler: allocates processes to processorsprocessors

Memory Manager: allocates pages, Memory Manager: allocates pages, swaps pages, translates addressesswaps pages, translates addresses

File Manager: handles directories and File Manager: handles directories and file accessfile access

Page 3: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Functional ComponentsFunctional Components

Device Manager: maintains drivers Device Manager: maintains drivers and controls accessand controls access

Network Manager: handles Network Manager: handles transmissionstransmissions

I/O ManagerI/O Manager

Page 4: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Process BlockProcess Block

IDID

ProcessorProcessor

Address space pointerAddress space pointer

PriorityPriority

OwnerOwner

StateState

Page 5: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Key ComponentsKey Components

Address SpaceAddress Space

Program CounterProgram Counter

Instruction StackInstruction Stack

ThreadThread– Contains registersContains registers

Page 6: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Process StatesProcess States

CREATE READYSchedule

RunningTerminate Terminated

HALTEDBlocked

Suspended

Interrupt

Activate

Request

Suspend

Retrieve

Release

Timed out

Page 7: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Scheduling AlgorithmsScheduling AlgorithmsNon-preemptiveNon-preemptive– First Come, First ServedFirst Come, First Served– Shortest Thread NextShortest Thread Next– PriorityPriority– DeadlineDeadline

PreemptivePreemptive– Shortest Thread NowShortest Thread Now– Dynamic PriorityDynamic Priority– Round RobinRound Robin

Page 8: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Pages v SegmentsPages v Segments

Pages are constant size, segments Pages are constant size, segments variablevariable

One page per frame, segments could One page per frame, segments could be clusteredbe clustered

Segment virtual address requires Segment virtual address requires lengthlength

Pages have internal fragmentation, Pages have internal fragmentation, segments have externalsegments have external

Page 9: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

FragmentationFragmentation

Internal: “holes” in page from Internal: “holes” in page from released variablesreleased variables

External: freed storage smaller than External: freed storage smaller than next allocationnext allocation

Prevention/alleviation:Prevention/alleviation:– Free space listFree space list– ReallocationReallocation– DefragmentationDefragmentation

Page 10: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Replacement SchemesReplacement Schemes

RandomRandom

FIFOFIFO

Least Recently UsedLeast Recently Used

Least Frequently UsedLeast Frequently Used

OptimalOptimal

ClockClock

Page 11: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

File FormatsFile Formats

SequentialSequential

IndexedIndexed

InvertedInverted

Page 12: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Data GatheringData Gathering

Direct pollingDirect polling– Check for next inputCheck for next input

DMADMA– Interactive connection between register Interactive connection between register

and sourceand source

Interrupt-DrivenInterrupt-Driven

Page 13: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Device Data BuffersDevice Data Buffers

SingleSingle

DoubleDouble

CircularCircular

Page 14: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

SemaphoresSemaphores

Binary v countingBinary v counting

Wait() checks if semaphore value is 0Wait() checks if semaphore value is 0– Waits until it isWaits until it is– Once 0, decrementsOnce 0, decrements

Signal() increments valueSignal() increments value

Page 15: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

MonitorsMonitors

Function to request entry into Function to request entry into MonitorMonitor

Critical data – accessible only within Critical data – accessible only within monitormonitor

Conditional Variable and Conditional Variable and corresponding queuecorresponding queue

Page 16: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Conditions for DeadlockConditions for Deadlock

Mutual ExclusivityMutual Exclusivity

Hold and WaitHold and Wait

Non-preemptionNon-preemption

Circular WaitCircular Wait

Page 17: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Deadlock PreventionDeadlock Prevention

Total Request ObtainTotal Request Obtain

Single Write LockSingle Write Lock

PreemptionPreemption

Resource OrderingResource Ordering

Page 18: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Network LayersNetwork Layers

PhysicalPhysical

Data LinkData Link

NetworkNetwork

TransportTransport

SessionSession

PresentationPresentation

ApplicationApplication

Page 19: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Data ConcernsData Concerns

AvailabilityAvailability

ConfidentialityConfidentiality

IntergrityIntergrity

AuthenticityAuthenticity

Page 20: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Active AttacksActive Attacks

MasqueradeMasquerade

Keystroke captureKeystroke capture

Message ModificationMessage Modification

Denial of ServiceDenial of Service

Page 21: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Malicious IntrusionsMalicious IntrusionsMasqueraderMasqueraderHackerHackerPassword guessingPassword guessingCommunication tappingCommunication tappingTrap doorTrap doorLogic bombLogic bombTrojan HorseTrojan HorseVirusVirusWormWormZombieZombie

Page 22: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Virus StagesVirus Stages

DormantDormant

PropogationPropogation

TriggeringTriggering

ExecutionExecution

Page 23: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

Data ProtectionData Protection

Access tokensAccess tokens

EncryptionEncryption

PermissionPermission

Memory keysMemory keys

Page 24: Final Review Monday, May 5th. Functional Components Process Manager: creates/removes processes Scheduler: allocates processes to processors Memory Manager:

AuthenticationAuthentication

PasswordsPasswords

IP checkingIP checking

CookiesCookies