Systems software Flashcards

software and software development

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

Define what an operating system is

A

software that controls the computer, manages the computer’s hardware and from which other programs can be run

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

Outline the role of an operating system

A
  • Manage the system hardware
  • Manage the installation and running of programs
  • Manage the security of the system
  • Provide a user interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define user interface

A

This means that the computer and user interact.

  • This could be the command line interface, where operating system commands are typed in

or a

  • Graphical user interface, where programs run in Windows and the user interacts using a mouse and icons
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe paging

A

This is when programs are divided physically into equal-sized blocks called pages

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

Describe segmentation

A

When programs are divided logically . They are split into blocks containing modules or routines

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

How does the OS manage memory? Why?

A

When a system runs low on physical memory (RAM), it uses virtual memory (an area of secondary storage).

Pages are swapped from main memory to virtual memory when not needed and then back to main memory when required. If this happens too often the computer slows down (disk thrashing).

  • Because RAM is more expensive, the computer system will often have more secondary storage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Define interrupt

A

A signal sent to a CPU to signify another process needs the processor’s time

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

Why do we need interrupts

A

The CPU needs to know when a device needs its attention.

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

When can Interrupt take place

A

An Interrupt can only take processor time from tasks with lower priority. When an interrupt is raised, the operating system runs the relevant interrupt service routine(IRS).

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

What happens before an interrupt request can be handled

A

At the end of each iteration of the fetch-decode-execute cycle, the processor checks to see if there are any interrupts. If there are, and they are of higher priority than the current task, then a range of steps take place.

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

What happens when there is an interrupt

A

The contents of the program counter and the other registers are copied to an area of memory called a stack.

  • The relevant ISR can then be loaded by changing the program counter to the location of the ISR in memory.
  • When the ISR is complete, the previous values of the program counter and other registers can be restored from the stack to the CPU.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What happens when a new, higher-priority interrupt is raised

A

The interrupt currently being serviced is also added to a stack in memory and the new interrupt is serviced. Once this new interrupt is finished, the previous interrupt is taken off the stack and continued.

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

what does scheduling ensure

A

That each job and user gets sufficient processing time.

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

Define scheduling

A

The method an operating system uses to ensure all processes get sufficient processing time.

A scheduler uses a scheduling algorithm to determine how to share processor time

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

What are the 5 scheduling algorithms

A
  • Round robin
  • First come first served
  • Shortest job first
  • Shortest remaining time
  • Multilevel feedback queues
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe ‘round-robin’

A

Each process is given a fixed amount of time.

If it hasn’t finished by the end of the time, it goes to the back of the queue so the next process in line can have its turn.

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

Describe ‘first come first served’

A

The first process to arrive is dealt with by the CPU until it is finished.

Meanwhile, any other processes that come along are queued up waiting for their turn.

18
Q

Describe ‘shortest job first’

A

Picks the job that will take the shortest take and runs it until it finishes

19
Q

Describe ‘shortest time remaining’

A

The scheduler estimates how long each process will take.
It then picks the one that will take the least amount of time and runs that.

This algorithm is pre-emptive. This means that if it hasn’t been completed after a certain amount of time, the scheduler checks whether any shorter process have been added. If so, it switches to them.

20
Q

Describe ‘multilevel feedback queue’

A

Uses a number of queues.

Each of these queues has a different priority. The algorithm can move jobs between these queues depending on the job’s behaviour.

21
Q

What are the 5 types of operating systems

A
  • Distributed operating system
  • Embedded operating system
  • Multitasking operating system
  • Multi-user operating system
  • Real-time operating system
22
Q

Describe a distributed operating system

A

Allows multiple computers to work together on a single task.

23
Q

when can a distributed operating system be used
+ example

A

They tend to be used in systems aimed at completing computationally intensive tasks.

Eg. rendering complex 3D animations (where the workload can be shared across a collection of computers using a distributed operating system )

24
Q

Describe an embedded operating system

A

Designed to run on embedded systems rather than general-purpose computers.

25
Q

Define an embedded system

A

A computer that forms part of a device such as a washing machine, vending machine or a car’s engine management systems

26
Q

Describe a multitasking operating system

A

Can run multiple programs simultaneously

27
Q

When can a multitasking operating system be used
+example

A

Most modern personal computer operating systems are multitasking

Eg. Windows, MacOS and Linux

28
Q

Describe a multi-user operating system

A

Allows multiple users to use a system and its resources simultaneously!

29
Q

When can a multi-user operating system be used
+example

A

Tend to be used on larger, more powerful mainframe computers able to service large numbers of users at the same time

Eg. Banks and retailers
(which are capable of processing large numbers of transactions while being accessed by customers and employees)

30
Q

Describe a real-time operating system

A

Designed to carry out actions within a guaranteed amount of time even when left running for long periods. Usually the expected response time is within a small fraction of a second.

31
Q

When can a real-time operating system be used
+example

A

Autopilot on a plane is an example of a system that needs to run using a real-time operating system. If the plane needs to move it is essential there is no delay.

32
Q

What is the BIOS and what does it do

A

BIOS - basic input/output system

When a computer is first switched on it looks to the BIOS to get up and running, and so the processor’s program counter points to the BIOS’s memory

33
Q

Where is the BIOS stored

A

Originally stored on ROM, nowadays the BIOS is stored on flash memory so that it can be updated. This also allows settings such as the boot order of disks to be changed and saved by the user.

34
Q

why do we need device drivers

A

To allow computers to communicate with various devices with different models and manufacturers.

35
Q

what is a device driver

A

A piece of software that tells the operating system how it can communicate with hardware.

36
Q

What role does the operating system play in managing device drivers

A

The os identifies hardware components and automatically installs or updates drivers without user intervention.

They connect to online databases or the device manufacturer’s servers to download compatible drivers, making the process more seamless for users.

37
Q

What is a virtual machine, and how does it work

A

A virtual machine is a program that simulates the functionality of a physical computer.

It runs on top of a host operating system, mimicking a real machine’s hardware and software environment. This allows it to operate as if it were a separate physical computer.

38
Q

Why might someone run one operating system within another using a virtual machine

A

This might be necessary when a specific program requires an operating system that is different from the host system.
, or when developers want to test their software on multiple platforms without needing separate physical machines.

39
Q

what is intermediate code

A

An artificial computer-readable representation of a program, designed to be efficient but not directly readable by the CPU

40
Q

How does machine code differ from machine code

A

Unlike machine code, intermediate code cannot be executed by a CPU and is platform-independent, making it highly portable.

41
Q

Why can’t intermediate code be directly run on a processor

A

It is not designed for processors and requires a virtual machine to interpret and execute it.

42
Q

What role does a virtual machine play in executing intermediate code

A

A virtual machine converts it into instructions that the underlying hardware can execute.