Topic 2.6 - The Operating System Flashcards

1
Q

What is the definition of an Operating System?

A

It is software which manages the operation of the computer by controlling hardware and application software.

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

Name five resources which the operating system manages?

A

It manages all hardware and software including:

  • Memory
  • The processor
  • Peripherals
  • Backing store
  • The interface
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does the operating system manage memory?

A
  • It ensures all programs and data (including itself) is stored in correct memory locations
  • Ensures that programs and data cannot corrupt one another
  • Manages cache memory via the cache controller
  • Can allocate part of secondary storage to be used as virtual memory if the RAM fills up
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does the OS manage the processor?

A
  • On a multi-tasking OS, it makes it appear that processes are running simultaneously by allocating time slices
  • Ensures that different processes don’t interfere with each other
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How does the OS manage peripherals?

A
  • Manages peripherals such as input and output devices
  • Communicates with the device drivers either sending an output or receiving an input (give examples)
  • Allows communication with peripherals at very high speeds even when the CPU is dealing with other processes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does the OS use spooling?

A

Spooling is similar to a buffer however uses disk space to queue jobs for a device until it’s ready to accept them

  • Spooling needed as peripherals and processors run at different speeds
  • Jobs received in correct order when device is free
  • Useful in batch processing (e.g. payroll payslip printing)
  • Useful as user can carry on working / log off whilst waiting for job to print for example
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is polling?

A

This is where the operating system periodically and sequentially sends signals to devices to check their status. Used to ensure each process gets its appropriate share of processor time.

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

How does the OS manage the backing store?

A
  • Ensures that data is stored and can be retrieved correctly from any disc drive
  • Creates and maintains a filing system such as FAT or NTFS
  • Organise files in a hierarchical directory structure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the different attributes a file can have?

A
  • Read-only
  • Write
  • Amend
  • Delete
  • Archive
  • System
  • Hidden
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does the OS manage user accounts?

A
  • Allows creation and deletion of user accounts
  • User profiles make it possible to allocate access rights to a group of users in one go
  • Maintain user profiles with appropriate restrictions (e.g. Admin, Staff, Student)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does the OS provide an interface for the user?

A
  • Provides useful icons (e.g. recycle bin)
  • Provides menus / drop-down lists for easy choices
  • Allows the creation and use of hot keys
  • Allows the creation, deletion, copying, moving, sorting and searching of files and folders
  • Allows easy navigation of files and folders
  • Allows customisation of desktop
  • Allows user to have multiple windows open
  • Allows users to switch between windows
  • Allows user to copy data across applications
  • Provides user with error / warning / help messages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is the purpose of utility software?

A

They are designed to help analyse, configure, optimise and maintain the computer.

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

Name 5 different forms of utility software:

A
  • Anti-virus
  • Firewall
  • Defragmentation
  • Cookie removal
  • File manager
  • Task manager
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the three different modes of operation?

A
  • Batch Processing
  • Real-Time Control
  • Real-Time Transaction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe batch processing:

A
  • All inputs and data is collected first
  • Once the efficient batch process has begun, there is no more intervention by the user
  • Batches usually processed at night when the system is relatively underused
  • Batch processing can be used when individual users submit jobs which are then processed as a batch
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Describe real-time control:

A
  • These systems are automatic and require no user interaction
  • Often sensors are used to constantly monitor conditions
  • Inputs are processed immediately
  • Outputs are adjusted immediately
  • e.g. ABS or air conditioning units
17
Q

Describe real-time transaction:

A
  • When a user views a record, they are locked out
  • The record is updated immediately
  • This ensures that no two users can book the same ticket
  • e.g. plane tickets or concert tickets
18
Q

What are the four different types of system?

A
  • Single User
  • Multi-programming
  • Multi-user
  • Multi-tasking
19
Q

What are the features of a single user system?

A
  • Windows allow multiple users access to a PC, but only one at a time
  • It is a standalone system
  • The computer is not connected to a network
  • Unable to communicate with other computers or share data or devices
  • Protected from viruses/hackers
  • Not susceptible to network failure
20
Q

What are the features of a multi-programming system?

A
  • Two or more programs are held in main memory at the same time
  • The programs appear to be running simultaneously
  • Uses partitioning
  • Uses scheduling
  • Means processor time isn’t being wasted
21
Q

What is scheduling?

A

The real-time clock causes regular interrupts to create time-slices which the OS allocates to the various jobs.

22
Q

What is partitioning?

A

This is the allocation of a portion of memory to a process and ensuring those portions don’t overlap and corrupt one another.

23
Q

What is threading?

A

This is where a process is split up into multiple mini-processes known as threads which can be used to perform background tasks.
- Uses modern computers multiple cores

24
Q

What are the features of a multi-tasking system?

A

This is a multi-programming system applied to a single user machine.

25
Q

What are interrupts?

A

Interrupts are signals sent by the various hardware devices and internal units to tell the processor that they need attention. Each type of interrupt is associated with an interrupt handler.

26
Q

What is the purpose of an interrupt handler?

A

An interrupt handler is a software procedure that takes control when the interrupt occurs to deal with the event/error.

27
Q

What happens when a device sends an interrupt?

A
  • The processor checks and detects the interrupt register for different types of interrupts
  • The program currently being executed is halted
  • An interrupt service routine is executed
  • The original program continues from where it left off
28
Q

What needs to be considered when there a multiple interrupts occurring at the same time?

A
  • The priorities of the interrupt need to be checked
  • A high-level interrupt may interrupt the servicing of a lower level interrupt
  • Interrupts with high priority include impeding data loss, impending hardware/software failure and the detection of imminent power failure.
29
Q

What are program control blocks used for?

A

These are used to store the state of the currently executing program whilst an interrupt is being dealt with.

30
Q

What is buffering?

A

Uses memory to control data coming into / out of peripherals as they run at different speeds. Buffers are used in two processes, firstly the buffers need to be filled with data and secondly for the buffers to transfer the data to be processed.

31
Q

Why is double buffering preferred over single buffering?

A

Double buffering is preferred as when one buffer is being filled, the other buffer can be transferring the data which is more efficient.

32
Q

What are the three different process states?

A
  • Ready (waiting for a time slice)
  • Running (being executed)
  • Blocked (error received, e.g. needs data from input)