SLR04 – Operating systems – Systems software (AS & A’Level) Flashcards

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

What is the function of the operating system (OS)?

A

Provide interface between the user and the hardware through application software, and provides a platform for them to run and provides its own user interface.

It also handles interrupts such as power failure

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

What are the important parts of the operating system?

A

Application software: involves common user interface, so the user can interact with it in a familiar way

Utility programs: Some are built in the OS that help maintain the computer, e.g. encryption software

Memory/resource management: loads various programs into memory, so they can be executed and manage the data these programs acquire

File management: in charge of where files are stored and where they are going to be loaded from again. This could be because the user doesn’t want to lose their work when power is switched off

Device driver: translates the OS instructions into what the hardware understands

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

What are the features of the OS?

A

Multitasking: When more than one program is running at the same time. The processor allocates a small amount of time to each process very quickly, so it simultaneously runs

File management: Data is stored in files, and extension to the file name tells the OS which application to load the file into. Overtime, the hard disk becomes fragmented with files, so OS presents logical structure of files in folders and allow the users to rename, copy, delete and move files.

User management: Allows multiple users to log into the same computer. The OS retains setting for each user such as icons, or desktop backgrounds. Each user may also have different access rights to file + programs. Client server network may impose fixed (ensures every user has same desktop + setting) or roaming (allows user to customise their settings) profile for users and manage log in requests to the network.

User interface: the way in which you interact with the computer as a human being. Most common and familiar is graphical user interfaces. WIMP:
windows icons, menus and pointers. Very visual interface, ideal for beginners and optimised for mouse and touch gesture input

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

What are the 3 types of memory management?

A

Paging: divides memory into smaller sections. Divided into fixed sizes, all the same, and considered physical divisions. Does not take into account how it splits the program. Could separate the instructions inside looping condition, so they’re in different pages, but this is not efficient, it is better to keep those instructions together in memory.

Segmentation: divides memory into smaller sections. Divides into different sizes. Segments are complete sections of programs. Divided by logical divisions.

Virtual memory (on hard disk): significantly more room available and cheaper, so when main memory is full, instructions not being used are transferred to space in hard disk. When needed again, a different program can be swapped out with it, giving the impression the computer has more memory than it does.

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

Paging vs Segmentation (similarities and differences)

A

Similarities:
1. Both allow programs to run despite insufficient memory
2. Both stored on disk
3. Both transferred into memory when needed

Differences:
1. pages are fixed, segments are different sizes
2. pages are made to fit different sections of memory. Segments are complete sections of programs
3. pages are fixed divisions whereas the other is logical divisions

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

How does a computer handle running out of memory, and why does it slow down?
How can this issue be avoided?

A

Virtual memory allows data in RAM not being currently used to be transferred to the hard disk temporarily to free up space in RAM for other programs and data. When that data is needed again, any other unused data is transferred to the hard disk before original data is transferred back to RAM. This is known as swapping.

When virtual memory is used on a regular basis, it slows the computer down.

Paging and segmentation, or just simply increasing the size of RAM to reduce the need for virtual memory, can solve this issue.

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

What is interrupt service routine?

A

A program with a set of instructions that need to be fetched, decoded and executed to carry out the operations for the interrupt
That means content in the program counter have to be changed and to point address of the first instruction of the interrupt

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

What is an interrupt, and how is it handled?

A

Interrupt: When a device/application requires attentions from the processor

(Fetch → decode → execute → check for interrupts)

Values in the registers are copied into a data memory structure known as stack to later retrieve these values back. This is put at the top of a stack frame. The interrupt can then be executed, and once complete the frame is popped from the top of the stack and the values are loaded back into the registers and continues the program where it was left off

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

What happens when the interrupt is interrupted?

A

When an interrupt comes along, the previous program is suspended and the data has been stored into the stack frame. The interrupt begins executing.
A new interrupt comes along and suspends the first interrupt and pushes the registers content on to the top of the stack, and the 2nd interrupt is executed.
Once this is completed, we pop the frame at the top of the stack and the value of the 2nd interrupt is retrieved and loaded back into the processor registers and continue executing.
Once completed, we pop the frame from the top of the stack and retrieve previous values from the original program and loaded back into the registers and carry on executing where the original program left off.

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

What is scheduling?

A

The task of allocating CPU processor time amongst all running programs

Manage which process to manage next and the amount of time.

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

What are the different types of scheduling algorithms?

A

First come, first served: processors executed in order they arrive

Shortest job first: picks process that takes shortest amount of time and runs its first

Round-robin: each process allocated a fixed amount of time and if it’s incomplete it returns to the back of the ready queue

Shortest remaining time: similar to SJF but is pre-emptive algorithm, meaning process can be suspended if a high priority process enters the queue

Multi level feedback queue: if a computer has more than one processor/core, it can handle more than one process queue at a time. This process is very complexed

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

What are the different types of OS’s?

A

Multitasking: more than one application open at the same time

Multi-user: allow more than one person to use a computer at the same time

Distributed: OS control and coordinates the computers, presenting them to the user as if they were a single system and online shopping sites often use it

Embedded: tend to run on dedicated hardware, so they run with maximum efficiency, using low powered processors and very little memory e.g. washing machines, car engine managements

Real-time: processes have to be guaranteed to execute within a known time frame, e.g. aircraft autopilot. Rarely run at full capacity

All 5 are not mutually exclusive

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

What is BIOS and what does it stand for?

A

The Basic Input Output System:
responsible for loading OS when computer first turns on

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

What does BIOS do?

A

First checks all hardware needed is connected and working using a power on self test (POST)

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

What is the bootloader program/bootstrap?

A

Used to load the OS kernel into memory and the OS takes over and boots rest of the system

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

Where are initial instructions stored?

A

ROM

17
Q

Where are BIOS setting stored?

A

Flash memory so they can be changed and retained when the power is switched off

18
Q

What is the purpose of a device driver?

A

Software that tells the OS how to communicate with device
Translates OS instructions into a series of instructions that a specific piece of hardware will understand

19
Q

What is a virtual machine?

A

A program that has the same functionality as a physical computer

20
Q

Distributed operating system

A

A distributed OS can coordinate the processing of a single job across multiple computers

A program can be run by the user that uses data or
resources from any other computer

Resources could include processor time, memory and
I/O facilities

The distribution of tasks is coordinated by the OS passing instructions between computers. The user can access more computational power with
the illusion of working with a single processor

There is no need for training or writing programs differently but:
- the programmer has no control
over the task distribution as
this is entirely handled by the OS

21
Q

Multi-tasking system

Multi -user

A

A single processor can appear to do more than one
task simultaneously by scheduling processor time

Some systems use a very powerful computer called a mainframe which might be seen in universities or large businesses

Lots of users with their own terminals access the
mainframe’s CPU and each gets a time slice
- Each terminal is also running
multiple processes

Example:
A smart phone is a computer with a multi-tasking Operating System

22
Q

Mobile operating systems

A

They are linked to specific hardware

Low level proprietary OS is used for handling hardware and special features

Main OS handles user interface and running applications

23
Q

Open source operating system

A

Example: Android
- used by all major device manufacturers
- allows for major customisation
- device manufacturer can fine-tune the OS to suit their devices, and add additional features or user interfaces to enhance the user experience
- interface and available apps can be a major selling point

-

24
Q

Embedded operating system

A

Household devices e.g. washing machine

  • The embedded OS has minimal features
  • Application programs are held in ROM
  • There is a limited amount of RAM
  • The user interface is simple and minimal
25
Q

Real time operating system

A

Some OS’s must operate in real time:
- Must respond extremely quickly to inputs
- May need to cope with many inputs simultaneously

Real time OS’s are usually seen in
safety-critical environments

If a hardware component fails, the OS must have a failsafe to detect this and respond appropriately

There is hardware redundancy
- crucial components
are duplicated in case one fails

26
Q

Systems software

A

(software can be group into many categories)

It’s needed by the system to control hardware and run applications
- Operating System
- Utilities
- Libraries
- Translators

27
Q

What do utility programs do and what tasks do they perform?

A

They optimise the performance of the computer and perform useful background tasks

  • Disc defragmenter:
    Large files stored on a magnetic hard drive may be split up across several physical disk locations
    Reorganises the hard drive so that
    files are in sequential blocks where possible
    The result is that files can be read more quickly
  • Virus checker:
    Scans permanent data for viruses by comparing them to known virus definitions
    Antivirus software uses heuristics
  • It knows what types of behaviour
    are likely to be used by a
    malicious program
  • Heuristics can be used to guess
    which programs or files may
    contain a virus, based on their
    behaviour
  • Sometimes the virus checker will
    flag a harmless file
    as a virus
  • Automatic backup:
    Data in permanent storage needs to be backed up regularly which users may forget to do and so can be automated specifying:
    - Where – portable hard drive,
    cloud, local server
    - When – usually when the
    computer is not in use
    - What – which data should be
    backed up
    - How – should backups be
    compressed
  • Automatic updating:
    Runs in the background detecting software update releases and installing them automatically
  • Compression software:
    We may want to send large files across the internet so this can reduce the size of it
28
Q

What do libraries and translators do?

A

Allows programs to use pre-written routines and to be translated into executable code

29
Q

What is application software and what categories can it be divided into?

A

Software that performs a task to benefit the user

  • General purpose
  • Special purpose
  • Bespoke
30
Q

What is off the shelf software?

A

Ready made software available for anyone to purchase

31
Q

What is bespoke software?

A

customised software for a specific user

used more by businesses than individuals

32
Q

What is the difference between Open source software and Closed source (proprietary)?

A

Open source:
- Allows anyone to access its source code
- The software is open source licensed but free to use
- Anyone may modify the software and sell it, on the condition that the software produced is also
open source
- Different from freeware - software that is free for anyone to use but the source code is not available

Closed source:
- Does not allow access to source code
- Users must pay the person/company who owns
copyright for a license to use the software
- There may be restrictions on how the software is used e.g. it may only be licensed to be used by one person, on one machine, or on a particular physical site

33
Q

What criteria’s may be used when selecting an application?

A

Functionality – does it do what I want it to do?

Hardware – will it run on the hardware?

Availability – already exists or specially written?

Cost – how much is it?

Reliability – are there bugs, has it been tested?