Computers 2 Flashcards

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

What is the

operating system?

(OS)

A

The most important software on a computer that:
- enables hardware to communicate effectively with the software
- provides an interface for users to interact with the computer
- organises and keeps track of files stored on a computer’s secondary storage
- is responsible for access control
- allocates programs their share of the CPU, main memory and peripherals and keeps track of their progress

When the computer starts up, the operating system is loaded and performs a number of key functions.

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

How does the operating system organise and keep track of files stored on a computer’s secondary storage?

A

Using a hierarchical tree structure.
The top node of the tree is the root directory. Nodes lower down are either, directories, sub-directories or files.
Every file in the system has a unique path so that it can be easily located. This also allows the filename to be used more than once.
When there’s a new file to be stored, the operating system splits it up into smaller pieces and stores each piece in an empty sector on the hard drive. It keeps a record of the start location and sequence number of each piece so that it can retrieve and rename the file when it is required.

The operating system provides a number of functions for users to manage their files and directories, such as save, open, copy, duplicate, reassemble and delete.

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

Where are programs stored on a computer?

A

on a hard drive or some other form of secondary storage

they are loaded into the computer’s main memory in order to be executed

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

What is a

process?

A

a program that is loaded into main memory and is being executed

some processes are visible to the user as application software, but others run unnoticed in the background

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

What are some different strategies that an OS uses to ensure that each process gets a share of CPU time?

A
  • first in, first out
  • shortest job first
  • round robin
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe the scheduling algorithm

first in, first out.

A

Processes queue in the order in which they arrive. The process at the head of the queue gets to use the CPU until it is finished or is held up waiting for another resource.

(like a printer)

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

Describe the scheduling algorithm

shortest job first.

A

the process which is closest to finishing goes next

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

Describe the scheduling algorithm

round robin.

A

Each process is assigned a time slice. Processes wait their turn in a queue. The process at the head of the queue goes next. At the end of its time slice, if it isn’t finished, it goes to the back of the queue and the next process is taken from the front of the queue.

some processes have higher priority than others and get more time slices

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