A Level Computer Science: Operating Systems

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which of the following is NOT a primary function of an operating system?

  • File compression (correct)
  • Memory management
  • Resource management
  • Input/Output management

Segmentation divides memory into equal-sized blocks, while paging divides memory into logical divisions.

False (B)

What is the term for the condition where a computer 'freezes' due to excessive page swapping between the hard disk and main memory?

disk thrashing

An interrupt is a signal to the processor that a ______ needs attention.

<p>process</p>
Signup and view all the answers

Match the scheduling algorithm with its method:

<p>Round Robin = Each job gets a time slice. First Come First Served = Jobs are processed in the order they arrive. Shortest Job First = Jobs are processed from shortest to longest. Shortest Remaining Time = Jobs are processed from the least time to completion.</p>
Signup and view all the answers

Which scheduling algorithm may lead to processor starvation?

<p>Shortest Job First (C)</p>
Signup and view all the answers

A real-time operating system (RTOS) is suitable for applications where tasks must be completed within a guaranteed timeframe.

<p>True (A)</p>
Signup and view all the answers

What is the purpose of the POST (Power-On Self Test) performed by the BIOS?

<p>to ensure that all hardware is working correctly</p>
Signup and view all the answers

Device drivers facilitate communication between the operating system and the ______.

<p>hardware</p>
Signup and view all the answers

What is the primary benefit of using virtual machines for software development?

<p>Testing on multiple OS without multiple devices (D)</p>
Signup and view all the answers

Which of the following is a characteristic of embedded operating systems?

<p>Limited functionality (D)</p>
Signup and view all the answers

Multi-tasking operating systems execute multiple tasks simultaneously using multiple processors.

<p>False (B)</p>
Signup and view all the answers

What is the role of the Interrupt Service Routine (ISR)?

<p>to respond to the interrupt</p>
Signup and view all the answers

The ______ is the first program that runs when a computer is switched on.

<p>BIOS</p>
Signup and view all the answers

Virtual memory uses which part of the computer to simulate RAM?

<p>Hard Drive (A)</p>
Signup and view all the answers

What type of code is run within a virtual machine?

<p>Intermediate Code (A)</p>
Signup and view all the answers

Device drivers are universal across all operating systems and hardware architectures.

<p>False (B)</p>
Signup and view all the answers

In the context of scheduling algorithms, what is a 'time slice'?

<p>a section of processor time</p>
Signup and view all the answers

The program that loads the operating system from the hard disk into main memory is called the ______.

<p>bootstrap/bootloader</p>
Signup and view all the answers

Programs that are not currently in use are temporarily moved into virtual memory through which process?

<p>Paging (C)</p>
Signup and view all the answers

Flashcards

Operating System

A collection of programs that work together to provide an interface between the user and computer.

Paging

Splitting memory into equal sized sections, swapping pages between main memory and hard disk

Segmentation

Splitting memory into logical divisions of variable size based on the program structure.

Virtual Memory

Using a section of the hard drive to act as RAM when main memory is insufficient.

Signup and view all the flashcards

Disk Thrashing

Occurs when the computer spends more time transferring pages between the hard disk and main memory than running the program.

Signup and view all the flashcards

Interrupts

Signals generated by software or hardware to indicate a process needs attention.

Signup and view all the flashcards

Interrupt Service Routine

The processor checks the contents of the interrupt register at the end of each Fetch-Decode-Execute cycle.

Signup and view all the flashcards

Round Robin

A scheduling algorithm where each job is given a section of processor time known as a time slice.

Signup and view all the flashcards

First Come First Served

Jobs are processed in chronological order by which they entered the queue.

Signup and view all the flashcards

Multilevel Feedback Queues

Uses multiple queues, each ordered based on a different priority.

Signup and view all the flashcards

Shortest Job First

The queue storing jobs to be processed is ordered according to the time required for completion, with the longest jobs being serviced at the end.

Signup and view all the flashcards

Processor starvation

A process does not receive enough processor time in order to execute and to be completed.

Signup and view all the flashcards

Distributed OS

Type of operating system which is run across multiple devices

Signup and view all the flashcards

Embedded OS

Built to perform a small range of specific tasks catered towards a specific device.

Signup and view all the flashcards

Multi-tasking.

Operating systems enable the user to carry out tasks seemingly simultaneously using time slicing.

Signup and view all the flashcards

Multi-user

Multiple users make use of one computer within a multi-user system.

Signup and view all the flashcards

Real Time OS

Designed to perform a task within a guaranteed time frame commonly used in time-critical computer systems.

Signup and view all the flashcards

BIOS

The first program that runs when a computer system is switched on.

Signup and view all the flashcards

Device Drivers

Computer programs which are provided by the operating system and allow the operating system to interact with hardware.

Signup and view all the flashcards

Virtual Machines

A software implementation of a computer system that provides an environment with a translator for intermediate code to run.

Signup and view all the flashcards

Study Notes

  • Computer Science A Level: 1.2.1 Systems Software

Operating Systems

  • It is a collection of programs providing an interface between the user and the computer
  • Enables users to communicate and perform low-level tasks, managing computer memory and resources
  • Commonly found in laptops, mobile phones, and game consoles.
  • Examples are Windows, macOS, iOS, and Android

Essential Operating System Features

  • Memory management (paging, segmentation, virtual memory).
  • Resource management (scheduling).
  • File management (moving, editing, deleting files and folders).
  • Input/Output management (device drivers).
  • Interrupt management.
  • Utility software (disk defragmenter, backup, formatting etc.).
  • Security (firewall).
  • User interface.

Memory Management

  • Shares memory fairly between programs because main memory is not big enough to store all of them
  • Enables efficient sharing through paging, segmentation and virtual memory

Paging

  • Memory splits into equal-sized sections called pages
  • Programs consist of equally-sized pages, swapped between main memory and the hard disk as required

Segmentation

  • Memory splits into logical divisions (segments) of varied sizes
  • Segments reflect program structure and flow, allocating code blocks like conditionals or loops

Virtual Memory

  • Uses hard drive section as RAM when main memory is full
  • Temporarily moves unused program sections to virtual memory via paging, freeing RAM for active programs
  • Key issue is disk thrashing

Disk Thrashing

  • Computer 'freezes' due to frequent page swapping between hard disk and main memory
  • More time is taken to transfer pages than to run the program, worsening as virtual memory fills

Interrupts

  • Signals from software or hardware alerting the processor to a process needing attention
  • Different interrupts have different priorities considered by the OS when allocating processor time
  • Stored by priority in a priority queue within the interrupt register
  • Operating system utilises device drivers to ensure interrupts are serviced fairly
  • Examples include printer signalling job completion or peripheral power failure

Interrupt Service Routine

  • Processor checks the interrupt register's content at the end of each Fetch-Decode-Execute cycle
  • For higher priority interrupts, current contents of CPU registers are moved to a stack
  • Processor loads the matching ISR into RAM and the flag is set to show the ISR has begun

Interrupt Handling Completion

  • After servicing, the flag is reset
  • Interrupt queue checks for further higher-priority interrupts
  • Processes are repeated until all priority interrupts are serviced or if no higher priority interrupts remain.
  • Contents are transferred back into the registers in memory, and the Fetch-Decode-Execute cycle continues

Scheduling

  • Guarantees all jobs receive fair processing time

Pre-emptive Scheduling

  • Jobs actively start and stop by the operating system like multi-level feedback queues, shortest remaining time, round robin

Non Pre-emptive Scheduling

  • Once started, jobs complete without being stopped like first come first served, shortest job first

Scheduling Algorithms

  • The scheduling depends on the task.

Round Robin

  • Each job receives a time slice to execute
  • Once each job uses the first slice, the system grants an equal slice
  • It continues until the job completes and exits the queue
  • Longer jobs take longer to complete, even though the job is seen to
  • The algorithm doesn't consider job priority

First Come First Served

  • Jobs process in chronological order
  • Although it is implemented straightforward, FCFS doesn't allcoate processor time based on priority

Multi-level Feedback Queues

  • Uses multiple queues which orders based different priorities
  • It is difficult to implement due to deciding which job to prioritse based on prioritie

Shortest Job First

  • The queue stores job to be processed according to the time
  • Most suited to batch systems, where shorter jobs prefer to minimise time
  • The process has to calculate how long each job takes
  • It risks processeor starvation if short jobs go to the queue

Shortest Remaining Time

  • The queue stores the time is ordered to the time left for completion
  • It also ricks process starvation if short job is added to the queue

Distributed Operating System

  • Runs across multiple devices
  • It spreads the load across multiple computer process when runninng the operating systems

Embedded Operating System

  • Catered towards s specific device to the operating system
  • Low funcionality and hard to update
  • Limited functionality

Multi-tasking Operating System

  • Uses time slicing to switch between in programs and applications in memory

Multi-user Operating System

  • Uses algorithm to allocate process

Real Time Operating System

  • Used critical time
  • Designed to perfrom a task within a time frame

BIOS

  • First program that runs when the switch is turned on
  • Register points to start-up of the computer
  • Checks CPU clock, memory, hardware

Bootstrap

  • Loads the operating system from the hard disk into main memory

Device Drivers

  • Allows the operating system to interact with the hardware
  • Communicates these requests to the operating system and the request is displayed to the screen

Device Drivers (Architecture)

  • Because of the archicture, drivers must be used to different types such as game consoles

VM

  • It provides an environment with an translator for code

Intemediate Code

  • The code is halfway betweem maching ecode
  • Is independent, can be used accross operating system

Virtual Machines

  • Tests program on operating system
  • It saves time, money
  • Runs slower compared to running low-level code

Other uses of VM

  • Protection from malware: malware run in the VM
  • Running incompatible software: run in VM

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Operating Systems Quiz
5 questions

Operating Systems Quiz

HealthfulWatermelonTourmaline avatar
HealthfulWatermelonTourmaline
Operating Systems and System Software Quiz
5 questions
Gestión de Memoria y Software de Sistema
39 questions
Use Quizgecko on...
Browser
Browser