Function and Purpose of OS Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an operating system?

A

The core software that controls how computer operates e.g. Windows, Linux, iOS, Android etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What must OS’s do?

A
  • Control the hardware
  • Manages software through loading and unloading applications from memory
  • Provide security
  • Provide a UI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are are the main parts of the OS?

A

Kernel, Device Drivers, UI, System Utilities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the kernel do?

A
  • Load and unload applications fro memory
  • Schedule tasks to run efficiently on the CPU
  • File and Memory management
  • File storage to and from secondary storage devices
  • Data security
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do device drivers do?

A

Every piece of hardware that communicates with the OS requires a device driver that enables internal or external device to communicate with the OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the user interface do?

A

Allows a user to interface and interact with the computer e.g. GUI, Command Line Interface, Natural Language Interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What do system utilities do?

A

Part of the OS that provides all the basic facilities that run in the background without user interaction e.g. print spool services, cryptographic password management or file management services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the purpose of memory management?

A

Without any form of memory management, recently opened programs could overwrite data and programs that were already in use, causing it to be corrupted, preventing programs and data from being overwritten

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is memory segmentation?

A

The allocation of segments of memory to allow a process to run and segments are not fixed sizes so will be as large as necessary to hold a process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the different parts of memory segments?

A
  • Code segment stores program instructions
  • Data segment stores program variables
  • Stack segment stores functions + subroutines and can grow into the free memory segment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is paging?

A

A page is a fixed sized division of memory, with each page being given and number and is recorded in the page table. Processes can be put into many different pages. Paging is used for virtual memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is virtual memory?

A

When the memory is full, the OS will take the least used pages and move them to the secondary storage device as virtual memory. This is extremely slow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is polling

A

Polling is the CPU or program regularly checking to see if an event or peripheral needs attention.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the advantages and disadvantages to polling?

A

Advantages:
- Very simple and predictable as only occurs at specific points while software runs
Disadvantages:
- May be inefficient in CPU processing time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are interrupts?

A

A signal for the CPU to stop what it is doing and instead carry out the interrupt task
Each interrupt has a priority and if it has a higher priority than the current process, the CPU will suspend the task and performs the Interrupt Service Routine (ISR)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What happens during an Interrupt?

A

When an interrupt of a higher priority than the current task arrived, the CPU completed the current FDE cycle and moves everything that was in the registers to the RAM in a stack. Once the IRS is completed, the previous contents of the CPU registers are moved from the stack back to the CPU

17
Q

What are the issues with interrupts?

A

Latency and stack overflow (when the stack grows too big when too many interrupts arrive at the same time

18
Q

What is scheduling?

A

The task of allocating CPU time amongst all running programs

19
Q

What does scheduling ensure?

A

Processes as many tasks as possible in a given time, make maximum use of CPU time, minimised delay, maximises use of resources, able to prioritise jobs

20
Q

Name the different types of OS

A

Multi-tasking, Multi-User, Real Time, Distributed, Embedded

21
Q

What is a multi-tasking OS?

A

Allows more than one program to be run concurrently relative to the user

22
Q

What is a multi-user OS?

A

Allows multiple users on different system to access a single computer through a network e.g. an office mainframe

23
Q

What is a real time OS?

A

Designed to handle input data within a guaranteed time and so is designed to be reliable and have consistent timing used in factory production lines and mars rovers

24
Q

What is a distributed OS?

A

Controls a number of computers at the same time to undertake a single high resource task. Each computer contains part of the overall OS and the group is called a cluster used in render farms and super computers

25
Q

What is an embedded OS?

A

Hardware is designed to handle a specific task on specific system hardware, used in cash machines, cars

26
Q

What is a BIOS?

A

Basic Input Output System contains the most basic hardware settings of the computer with set of instructions to boot the computer and is stored on ROM or flash memory on the motherboard

27
Q

What are the 4 stages of booting?

A

Power Up, POST, Hardware Checks, OS Start

28
Q

What happens during the Power Up stage?

A

When the on button is pressed, it powers the PSU and once it is sending a steady output of power, it sends a hardware reset signal to the CPU through the control bus

29
Q

What happens during POST (Power On Self-Test)

A
  • Checks the BIOS is not corrupted
  • The system chips are ok
  • The CPU, DRAM and VRAM are ok
  • The keyboard is present
30
Q

What happens during the hardware checks?

A

The BIOS initialises the computer’s internal components and the order the BIOS looks for the OS is determined by the boot order in the BIOS settings

31
Q

What happens during the OS start?

A

When the CPU boots a drive, it attempts to search for the boot sector, which is usually the 1st accessible sector of memory and runs the instructions in the boot sector which contains the Master Boot Record (MBR)
From the MBR, the BIOS finds the secondary storage device that holds the OS and from there finds the boot sector, loading the OS into the memory
After the OS is booted, the boot file is run to prepare the computer for personal usage