1.2.1 Systems Software Flashcards

1
Q

What is an operating system?

A

System software that manages computer hardware and provides common services for computer programs, acting as an interface between users and the machine.

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

Why is an OS needed?

A

Most software isnt written to interact with computer hardware.

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

What does are the main functions of an operating system?

A
  • Resource management
  • File management
  • Interrupt handling
  • Security
  • Runs software
  • User interface
  • Provides utilities
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What resources does an OS manage?

A

the CPU, memory, disk drives and printers

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

What does the OS do to manage tasks/resources?

A

Allocate resources to specific tasks and ensure that they are used effectively. They handle:
* how much memory to allocate each application
* when they get to use the CPU
* how to handle data being read from/written to memory

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

How does the OS help to manage RAM?

A

moves instructions from non volatile memory (such as secondary storage devices) into RAM to make them easier to access.

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

In memory management what are the OS’s main roles?

A
  • Identifying status-Marking the empty/occupied status of memory
  • Allocating memory-Identifies, reserves and allocates the correct amount of memory for data being stored
  • Prioritising processes-Prioritises commonly used processes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is logical address space vs. physical address space?

A

Logical address space is used within a program to declare the memory needed to run the program, physical address space is the actual memory space in the hardware.

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

What is memory management?

A

The OS takes the logical address space defined in the program and maps it to physical address space.

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

What are the different methods of memory management?

A
  • Paging
  • Segmentation
  • Virtual Memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the benefits of memory management? (3)

A
  • Enables multitasking as multiple programs can run
  • Maintains security as it restricts a program from accessing other programs memory
    MAKES COMPUTER RUN SMOOTHLY
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is paging?

A

Physical address space is divided into pages of equal size and there are allocated/deallocated to programs based on what the user is using.

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

What is Segmentation?

A

The physical address space is sorted into blocks of various sizes depending on the amount of space an application needs.

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

Advantages of paging

A
  • Efficient memory utilisation
  • Supports visual memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Disadvantages of Paging

A

Can lead to internal fragmentation, can waste space if each page is not full

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

Advantages of Segmentation

A
  • More space efficient than paging
  • Enables sharing data between applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Disadvantages of Segmentation

A
  • Can lead to external fragmentation
  • Potential security issues
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is Internal fragmentation?

A

When a process is allocated more memory space than it needs, leading to wasted space within the allocated block

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

What is external fragmentation?

A

When memory is scattered in small, non contiguous blocks, leaving gaps.

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

What is Virtual memory?

A

When parts of a process not currently being used are swapped from RAM to the hard disk and vice versa.

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

When is Virtual memory used?

A

When physical space in RAM is limited.

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

Advantages of memory management

A
  • Allows for more extensive programs to be run
  • Facilitates effective multitasking
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Disadvantages of Virtual memory

A

Can slow down system performance as secondary storage is slow to access.

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

What are the different types of scheduling?

A

Round robin, First come first served, shortest job first, shortest time remaining, multi level feedback queue

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

What is round robin scheduling?

A

Each task is alocated an equal time slice, once this is over it is finished and the next task is started.

26
Q

Advantages and disadvantages of round robin scheduling

A
  • Advantages- each task is definitely reached
  • Disadvantages- urgent tasks are less likely to be completed quickly when many are being run.
27
Q

What is first come, first served scheduling?

A

Processes are completed in the order they request to run

28
Q

Advantages and disadvantages of FCFS scheduling

A
  • Advantages- Simple to implement, prevents starvation
  • Disadvantages- Can cause tasks to have a long wait time
29
Q

What is shortest job first scheduling?

A

Processes with the shortest total time to complete go first.

30
Q

Advantages and disadvantages of Shortest job first scheduling

A
  • Advantages- Reduces wait times
  • Disadvantages- Prone to starvation
31
Q

What is Shortest time remaining scheduling?

A

The tasks are processed depending on the time remaining, if a task with less remaining time is added then the task will be paused and that will be completed first.

32
Q

Advantages and disadvantages of Shortest time remaining scheduling

A
  • Advantages- Adaptable, minimizes average waiting time
  • Disadvantages- Prone to starvation.
33
Q

What is a multi-level feedback queue?

A

Tasks are assigned a priority level, tasks are chosen based on the priority level and the processing time already had.

34
Q

What factors affect a tasks priority in MLFQ?

A

If a process uses too much time it’s priority is lowered.
If it has been idle for a while its priority is increased, avoiding starvation.
If a process involves input and outfput devices require large amounts of processing time so they are high priority
quick processes are completed first.

35
Q

Advantages and disadvantages of MLFQ

A
  • Advantages- improves fairness, prevents starvation
  • Disadvantages- complex, need to be tuned carefully
36
Q

How does the OS manage the User Interface?

A

It provides the user interface allowing the user to interact with the computer.

37
Q

Why are interrupts needed?

A

Scheduling processes are used to manage large tasks though smaller urgent tasks do not fit into this system. In order to prioritize urgent tasks devices use interrupts.

38
Q

What are interrupts?

A

Signals sent to the CPU requesting immediate attention, causing the CPU to halt all other processes until the interrupt is completed.

39
Q

Examples of when interupts may be used

A
  • Hardware device has signaled that is has data to process
  • Hardware device has completed a task that it was asked to do
  • A software process needs a service to be provided or OS function to be performed
  • An allotted amount of time has expired and an action needs to be performed
  • A hardware failure has occured and needs to be addressed
40
Q

What do OS’s activate when an interrupt is recieved

A

Interrupt service routines (ISRs)

41
Q

What is an Interrupt service routine?

A

A mini program created to respond to interrupt signals, these can be built into OSs or provided via device drivers

42
Q

What are the 10 steps of an ISR?

A
  1. The processor receives the interrupt
  2. The processor completes the fetch-decode-execute cycle of the instruction that it was running when it received the interrupt
  3. The current contents of the processor registers (including the program counter) are saved to memory
  4. The origin of the interrupt is identified so that the appropriate ISR is called
  5. All other lower-priority interrupts are put on hold to allow the ISR to finish running
  6. The program counter is updated with the address of the first instruction of the ISR
  7. The ISR completes its execution
  8. The processor registers are reloaded with the values that were saved to memory
  9. The lower-priority interrupts that were put on hold are re-established
  10. The program counter is set to point to the address of the next instruction that needs to be executed in the program that the processor was running when it received the interrupt
43
Q

How does the OS manage Input/Output devices

A

Manages communications between devices and the user abd manages functionality issues.

44
Q

How does the OS provide network services?

A
  • Creating and managing user accounts on the network
  • Controlling access on the network
  • Providing communication services between the network devices
  • Troubleshoot and Monitor the network
  • Configuring and Managing the resources on the network.
45
Q

What does the OS do for security?

A

Ensuring resources are protected from unauthorized access through permissions and passwords

46
Q

What are the different classifications of the OS?

A

Single user, Distributed, Multitasking, Multiuser, Embedded, Real Time

47
Q

What is a single user OS?

A

Can only have one active user at a time eg laptops

48
Q

What is a distributed OS?

A

Multiple computers acting as one, if one crashes more computers running it eg servers

49
Q

What is a multitasking OS?

A

Can run multiple applications at a time (most modern computers)

50
Q

What is a multiuser OS?

A

Allows multiple people to act as users on one computer, only used in large datacentres, used to be used when a single computer was very expensive.

51
Q

What is an Embedded OS?

A

Has a specific use, you cannot do anything other than the intended process as all programs are preprogrammed and non changeable

52
Q

What is a Real Time OS?

A

Permanently live and does not buffer, information is vital and time sensitive

53
Q

What is BIOS?

A

A set of computer instructions, stored in non volatile memory (ROM or flash memory) responsible for performing a computer’s start up procedures.

54
Q

What are BIOS’s roles when starting a computer?

A

Initialising hardware operations
Loading the OS
Managing the flow of data to and from the OS during bootup

55
Q

What are the stages of BIOS?

A
  1. POST
  2. Checking the CPU clock, memory and processor are all operational.
  3. Test for any external memory devices
  4. Loading the bootstrap program
56
Q

What is POST?

A

The Power On Self Test, this initialises and indentigies system devices including the CPU, RAM and other hardware

57
Q

What is the bootstrap program?

A

The program that loads the OS into RAM

58
Q

What is a Device Driver?

A

A piece of software that provides an interface between an operating system and a specific piece of hardware.

59
Q

Why are device drivers important?

A

They allow any OS to interact with any hardware, meaning devices can be build with efficiency and not compatibility in mind

60
Q

What is a Virtual Machine?

A

A VM runs software processes within other software that is already running without causing a decrease in performance

61
Q

What are the uses of a VM?

A
  • Running alternative OSs
  • Supporting incompatible software
  • Creating a test system
  • Running multiple servers
62
Q

What is intermediate code?

A

MR COUNT HELP