16.1 Purposes of a Operating System Flashcards

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

How does an OS maximize the use of resources?

A
  • the OS uses scheduling to allow better utilisation of CPU time and resources.
  • the direct memory access (DMA) controller frees up the CPU and allows it to carry out other tasks while the slower I/O operations are taking place.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does the OS hide the complexity of the hardware from the user?

A
  • using GUI interfaces rather than CLI
  • using device drivers
  • carrying out background utilities, such as automatic virus scanning.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Multi-tasking

A
  • Managing the execution of many programs that appear to run at the same time.
  • Allows computer to carry out more than one process at the same time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is process scheduling needed?

A
  • Allow multiprogramming
  • give each process a fair share of CPU time.
  • Highest priority jobs can be executed first.
  • Keep CPU busy all the time.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Running to Ready

A
  • TIme slice completed, interrupt occurs and process is moved to the READY queue.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Ready to Running

A
  • process turn to use processor, scheduler allocates CPU time to process.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Running to Blocked

A
  • the process carries out a I/O operation. Scheduler places it into the blocked queue.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Blocked to Ready.

A

An I/O operation is ready to be completerd by the process.

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

Paging

A

Reading/writing same size blocks of data to/from secondary storage when required.

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

Interrupt handling

A

Transfering control to another routine when a service is required.

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

Scheduling

A

Managing the processes running on the CPU.

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

Virtual Memory

A

Using secondary storage to simulate additional main memory so CPU can access more memory space than available RAM.

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

Difference between paging and segmentation

A
  • Paging uses fixed size block of memory, segmentation uses variable.
  • Paging as more risk of internal fragmentation.
  • Process of paging is essentially invisible to user.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How is paging used to manage virtual memory?

A
  • Divide virtual memory into blocks of same size called pages.
  • Divide RAM into frames
  • both fixed size
  • When a process is executed, a page table is used to translate logical to physical addresses.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How is segmentation used to manage virtual memory?

A
  • logical address space broken up into variable size blocks called segments.
  • Each segment has a name and size
  • Segments from logical memory are loaded into physcial memory using a segment map table.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Explain the term disk-thrashing.

A

Problem resulting from use of virtual memory. Continuous swapping of the same pages can mean nearly all processing time is used for swapping pages, therefore reducing processing speed.