4.6 Fundamentals of Computer Systems (The Operating System) Flashcards

1
Q

How does the OS manage the Processor

A

The OS decides which process to excecute by scheduling, and allocating time for each process, and handles interrupts to the process that is currently being excecuted.

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

What are Interrupts and how are they managed

A
  • Signals sent to the Processor to request immediate attention.
  • When received it suspends the task that it is excecuting and runs the task associated with the interrupt (if it has a higher priority).
  • This is used for when immediate tasks like a mouse click must be excecuted ahead of a long list of other tasks.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Scheduling

A

The OS uses algorithms to determine the most efficient order to excecute the processes based on priority, task length, and when the task was requested.

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

When is Scheduling used

A
  • This is also used for when files from a processs needs to be stored
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does the OS manage memory

A

The OS records how memory is divided so that memory is allocated efficiently between processes that are running

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

Name 3 memory management operations the OS conducts

A

1- tracking the status of memory allocation

2- Determining current storage requirements

3- Controlling memory usage

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

How does the OS track the status of memory allocation

A
  • naming all of the physical memory slots as “free” initially and when a program is loaded into a memory address, that address becomes “allocated”.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does the OS determine the storage requirements of a process

A
  • It is rare that a program can fit in one memory location
  • So, the reserves memory on the RAM based on the requiremnts of the program (type, length, size)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does the OS control memory usage

A
  • As more processes occur less memory is free
  • The OS manages the swapping between processses and their memeory space on the RAM to provide memory access for other programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is virtual memory

A
  • When the OS extends the limited spaace of main memory
  • Using secondary storage that reserves memory to act as main memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does the OS use Virtual Memory

A
  • It swaps parts of the process that is not currently in use into the virtual memory, then swaps it back when need
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the disadvantage of using paging or virtual memory

A

It uses secondary memory that is slower to access and to write to than primary memory.

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

How does the OS manage I/O devices

A

The OS takes a requests from the application software and issues the required command to the appropriate device to help complete the task. In order to manage these devices, device drivers are used which contain device specific instructions that the devices use to complete their respective tasks.

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

How does the OS manage Files/Resources

A

The OS uses file systems that tracks where files are stored. These file systems include Folders, Directories and files which users use to easily navigate their files.

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