1.2.1 Flashcards

1
Q

What is an operating system?

A

A collection o programs that work together to provide an interface between the user and computer

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

Name some functions of an operating system:

A

-memory management
-resource management
-user interface
-utility software

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

What is resource management/multitasking?

A

-Multitasking – when you have more than one program open and running at the same time.
-The processor allocates a small amount of time to each process and cycles between them. ​
-appears to be simultaneous

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

What is file management?

A

-Data is stored in files
-An extension to the filename tells the OS which application to load the file into
-The OS may present a logical structure of files in folders and allow the user to rename, delete, copy and move files

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

What is user management/security?

A

-User management – allows multiple users to log into the same computer
-OS will retainsettings for each user
-may have differentaccess rights

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

What is a user interface?

A

-WIMP – windows, icons, menus and pointers​
-Interactive​, Intuitive​
-Optimised for mouse and touch gesture input

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

What is paging?

A

-pages are fixed size
-physical divisions
programs are split up to fit into a given number of pages

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

What is segmentation?

A

-fixed sizes
-logical divisions
-complete sections of code

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

Similarities between paging and segmentation:

A

-both allow programs to run despite insufficient memory
-stored on disk
-transferred into memory when needed

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

What is virtual memory?

A

-when RAM is full, VM is used
-sections of programs not currently being used are temporarily moved into VM through paging
-frees up memory in RAM

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

What is an interrupt?

A

A signal generated by software/hardware to indicate that the processor requires attention

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

What is the interrupt service routine (ISR)?

A

a program with a set of instructions that need to be fetched, decoded and executed to carry out the operations of the interrupt

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

What happens when the CPU receives an interrupt:

A

-complete the current FDE cycle
-check priority of interrupt
-if its higher…
-values held in registers are pushed onto the stack
-interrupt is executed
-pop the frame off the top of the stack
-load values back into registers
-carry on with FDE cycle

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

What is scheduling?

A

-In a multi-user environment, a number of users will need servicing, seemingly at the same time so will need a scheduler

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

First come first serve (FCFS):

A

-Processes are executed in the order they arrive
-not pre-emptive

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

Shortest job first (SJF):

A

-Picks the processes that take the shortest amount of time and runs them until they finish
-not pre-emptive

17
Q

Round Robin (RR):

A

-Each process is allocated a fixed amount of time, known as time slice or quantum
-If the process is not complete by the end of its time slice, it returns to the back of the ready queue
-pre-emptive

18
Q

Shortest time remaining (STR):

A

-the ready queue is sorted by the estimated time to complete the process
-pre-emptive

19
Q

Multi-level feedback queues (MLFQ):

A

-several ready queues are used, each with a different scheduling algorithm
-jobs are able to move between queues as their priorities change
pre-emptive

19
Q

What does pre-emptive mean?

A

-Jobs are actively made to start and stop by the operating system

20
Q

What does non pre-emptive mean?

A

-Once a job is started, it is left alone until it is completed

21
Q

What are the different types of operating systems?

A

-distributed
-multitasking
-multi-user
-embedded
-real time