Operating Systems

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

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

31 Terms

1
New cards

What is an operating system?

System software that manages computer hardware and software resources and acts as an middle layer between the user and the computer, providing a platform for applications to run.

2
New cards

Name the functions of an OS.

Memory Management

File Management

Process Management

I/O device management

Security and Access Controls

3
New cards

Batch processing?

Jobs (program, data, directions) are queued and executed one after another, with no user interaction.

4
New cards

Interactive processing?

The user communicates with the program as it executes (real time).

5
New cards

Time-sharing vs multitasking?

Time-sharing: one machine, many users. Multitasking: one user, many tasks.

6
New cards

Application vs system software?

Application: performs specific tasks for users.

System: provides infrastructure for application software (OS + utility software).

7
New cards

What are the two components of an OS?

User interface and kernel.

8
New cards

What is the kernel?

The part of the OS that performs the basic required functions: file manager, device drivers, memory manager, scheduler and dispatcher.

9
New cards

Shell vs GUI?

Both are user interfaces: shell is text-based, GUI is graphical.

10
New cards

What is the file manager?

The file manager is the kernel component that coordinates the use of mass storage and files.

11
New cards

Directory vs directory path?

A Directory (folder) is a user-created bundle of files and other directories.

A path is a sequence of directories within directories.

12
New cards

What is a device driver?

A device driver is software that communicates with a device's controller, translating the OS's generic requests into the specific steps the device needs.

13
New cards

What does the memory manager do?

The memory manager allocates space in main memory and keeps each program within its allotted space.

14
New cards

What is virtual memory?

The illusion of more main memory than exists, created by swapping pages back and forth between main memory and mass storage.

15
New cards

What is bootstrapping?

The procedure that starts the OS: the CPU runs the boot loader from ROM when power is turned on.

16
New cards

What does the boot loader do?

Transfers the OS from mass storage into main memory, then jumps to it and hands over control.

17
New cards

Program vs process?

A program is a static collection of instructions stored on a disk and a process is the dynamic activity of executing those instructions.

18
New cards

What is process state?

A snapshot of the current status of a process: program counter, general-purpose registers, and the related portion of main memory.

19
New cards

What is the scheduler?

The scheduler adds new processes to the process table and removes completed ones.

20
New cards

What is the dispatcher?

Controls the allocation of time slices to the processes in the process table.

21
New cards

What is multiprogramming?

Dividing time into time slices and switching the CPU among processes.

22
New cards

What signals the end of a time slice?

An interrupt, generated by a timer circuit.

23
New cards

What is a process (context) switch?

Changing from one process to another.

24
New cards

What is an interrupt handler?

A program, part of the dispatcher, stored at a predetermined location in memory; it runs when an interrupt arrives.

25
New cards

Why does multiprogramming improve efficiency?

Time a process spends waiting for I/O isn't wasted; it's given to another process.

26
New cards

What is a critical region?

A group of instructions that should be executed by only one process at a time.

27
New cards

What is a semaphore?

A properly implemented "control flag" that guards a critical region.

28
New cards

What is mutual exclusion?

The requirement that only one process at a time be allowed to execute a critical region.

29
New cards

What is deadlock?

A deadlock is a situation where two or more processes are unable to continue executing because each is waiting for a resource held by another process.

30
New cards

Four conditions required for deadlock?

  1. Mutual exclusion: A resource can only be used by one process at a time

  2. Hold and Wait: A process holds a resource while waiting for another

  3. No preemption: A resource cannot be forcibly taken away from a process

  4. Circular Wait: Processes form a chain where each is waiting for another’s resource


31
New cards

Deadlock detection and correction vs avoidance?

Detection/correction: attack condition 3 by forcibly retrieving resources after deadlock occurs.

Avoidance: attack conditions 1 or 2 so it never occurs.