Operating Systems Flashcards

1
Q

What is software?

A

a collection of electronically stored instructions (a program) that allows you to interact with a computer

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

What are the two software categories?

A

application software and system software

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

What are some examples of application software?

A

office suites, photo editors (GIMP), web browsers (chrome), video conferencing (zoom, skpye)

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

What are some examples of system software?

A

operating systems (windows, linux), antimalware (trend micro anti-virus)

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

What is the role of a operating system?

A

process management, memory management, device management

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

What is involved in process management?

A

managing numerous, concurrently running programs, managing the CPU through individual processes

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

What is involved in memory management?

A

allocating and efficiently tracking memory

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

What is involved in device management?

A

granting and sharing access to computer’s hardware

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

What are the different process states?

A

ready, waiting, running, new, terminated

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

What is PCB?

A

process control block is a data structure used by the OS to manage info about a process, including the current values of program counter, CPU register, and accounting info

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

When is a new PCB created?

A

when a process is first created and persists until the process is terminated

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

When a process moves from one state to another what happens to its corresponding PCB?

A

moves from one state list to another in the OS

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

What happens each time a process is moved to the running state?

A

register values for the currently running process are stored into its PCB, the PCB is moved to the list of the state its going into, the register values of the new running process are loaded into the CPU

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

What is the exchange of register values called? (running state)

A

context switch

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

What is CPU scheduling?

A

the act of determining which process that is in the ready state should be moved to the running state

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

How many processes can be in the running state? What about ready state?

A

only one, multiple

17
Q

What is non preemptive scheduling?

A

when the current executing process gives up the CPU voluntarily

18
Q

What is preemptive scheduling?

A

when the operating system decides to favour another process, prempting the currently executing process

19
Q

What is turn around time?

A

the amount of time between when a process arrives in the ready state the first time, and when it exits the running state for the last time

20
Q

What are some examples of CPU scheudling algorithms?

A

first come first serve, shortest job next, round robin

21
Q

What is first come first serve?

A

when processes are moved in the CPU in the order in which they arrive in the ready state

(first that arrives it the first moved into CPU)

22
Q

What is shortest job next?

A

the process with the shortest estimated running time in the ready state is moved to the running state

23
Q

What is round robin?

A

when process runs or a specific amount of time and then moves back to the ready state if not finished and the process repeats

24
Q

Which CPU scheduling algorithms are non-preemptive vs preemptive?

A

FCFS-non-preemptive
SJN-non-preemptive
RR-preemptive

25
Q

What is the problem with shortest job next?

A

the time each process will take is not known in advance so it has to check

26
Q

Which CPU scheduling algorithm has the shortest turn around time?

A

shortest job next

27
Q

What are files?

A

containers for data or related information, can be text or other binary data

28
Q

What are file extensions?

A

the suffix after a filename

29
Q

Does changing the extension automatically change the files format?

A

no, the extension does not guarantee that the contents conform to that file type

29
Q

Does changing the extension automatically change the files format?

A

no, the extension does not guarantee that the contents conform to that file type

30
Q

What are some document file extension examples?

A

.docx, .xlsx, .pptx, .ods, .odt, .odp

31
Q

What are some examples of text based file extensions?

A

.txt, .c, .html, .java, .xml, .css

32
Q

What are some examples of image file extensions?

A

.gif, .jpeg, .png, .svg,.tiff, .bmp

33
Q

What are some examples of media file extensions?

A

.wav, .mp3, .mkv, .mp4, .divx, .avi

34
Q

What are directories?

A

they contain files and/or other directories

ex. folders in file

35
Q

What is a directory tree?

A

a logical, tree diagram view of a file system

36
Q

What are the parts of a directory tree?

A

root directory (highest level in file system)

subdirectory (contained within another directory)

parent directory (contains subdirectory)

working directory (location you are viewing/working on)

37
Q

What is a file path?

A

the textual description of the location of a file or directory in a file system

38
Q

What is the absolute path vs relative path?

A

path from the root of the file system to the file/directory vs path from the working directory to the file/directory