Docsity

System Software and Operating Systems Q&A, Exams of Software Development

Toggle sidebar
bg1
System software notes 10cs52
(vtuplanet.com), System
Programming Lecture Notes 202
5
-
202
6
Version.
A distributed OS provides better _______ by...? – ANS Provides better
service:
- Faster processing
- If one section fails, others can potentially continue operating
- Reduction in delays
A software development company is building an operating system for a
mobile phone that is in the process of being designed.
One of the developers is responsible for writing the code for what happens
when the CPU receives an interrupt. Outline what the code must do. [6] -
ANS- Complete the current FDE Cycle
- Check the priority of the incoming interrupt.
- If it's of a higher priority than the current task, contents of PC/memory
stored in memory in a stack
pg. 1
[DOCUMENT TITLE]
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download System Software and Operating Systems Q&A and more Exams Software Development in PDF only on Docsity!

System software notes 10cs

(vtuplanet.com), System

Programming Lecture Notes 202 5 -

2026 Version.

A distributed OS provides better _______ by...? – ANS Provides better service:

  • Faster processing
  • If one section fails, others can potentially continue operating
  • Reduction in delays A software development company is building an operating system for a mobile phone that is in the process of being designed. One of the developers is responsible for writing the code for what happens when the CPU receives an interrupt. Outline what the code must do. [6] - ANS- Complete the current FDE Cycle
  • Check the priority of the incoming interrupt.
  • If it's of a higher priority than the current task, contents of PC/memory stored in memory in a stack
  • The relevant interrupt service routine is loaded by loading the relevant value into the program counter.
  • When the interrupt service routine is complete the previous state is popped from the stack
  • And are loaded back into the registers An operating system uses scheduling. One method of scheduling is first come, first served. i) Explain why the first come, first served scheduling method may not be efficient. [2] ii) Describe one other scheduling method [2] iii) Explain why scheduling is necessary [4] – ANS Some instructions may take less time than the ones at the front, which may take a while, meaning instructions that can be done in seconds and held up by ones that take longer Shortest Remaining Time - the task that takes the least amount of time required to complete the job is done first

An embedded system consumes less power than a multi-task operating system as they are only used for limited functions when needed. E.S. needs to be as fast as possible to give accurate readings for real time traffic updates (e.g. closed road). Both operating systems maximize the experience for the user. Both allow inputs from users. However, the way these are input at different. PC = mouse, keyboard, etc. Sat nav = touchscreen, voice. Both give outputs to users. Both give visual outputs on the screen. Both use sound outputs. Describe a multi-tasking OS. - ANS- As used on your PC, Mac or Laptop

  • Manages many tasks simultaneously, e.g. PowerPoint, Chrome, iTunes, File Management etc.
  • Operating System switches between tasks rapidly, thanks to processor speed
  • Came about at the time of single core processors to allow several tasks to be carried out seemingly at the same time Describe a real time OS – ANS Carry out processes within a guaranteed amount of time (usually a fraction of a second)

E.g. Flight control systems; Life support systems

  • Must respond quickly to any inputs or sensors
  • Must be able to deal with many inputs simultaneously
  • Must have mechanism to detect and respond to hardware faults Describe an embedded OS. – ANS Much smaller Operating Systems, found within devices such as washing machines, cameras, POS (Point of Sale) machines, smart meters etc.
  • Specific to the device
  • Stored in ROM (program does not change)
  • Minimal user interface (buttons, dials, small screen)
  • Limited amount of RAM
  • Few if any data storage devices Describe multi-user OS. – ANS Supports more than one user... ...at the same time E.g. UNIX

Processor scheduling determines the order that processes can run and how long each process can make use of the processor Functions of an Operating System: - ANS- User Interface

  • Memory Management
  • Interrupt Service Routines
  • Processor Scheduling
  • Backing Store Management
  • Management of Input and Output Give examples of interrupts – ANS Hardware issue, such as a printer paper jam Key press by the user, e.g. CTRL ALT DEL Software error Disk drive indicating it is ready for more data How does the CPU keep track of where it is for interrupts? – ANS In order to keep track of where it is, the CPU makes use of a stack to store the PC value while it services the interrupt. Interrupts: - ANS Signal from a software program, hardware device or internal clock to the CPU

CPU stops what its doing and services the interrupt Checks for presence of interrupts at the end of each FDE cycle: Fetch - Decode - Execute - Interrupt Memory management in a computer for main memory can use either paging or segmentation. i. Explain what is meant by 'paging' [2] ii. Explain what is meant by 'segmentation' [2] iii. State two similarities between paging and segmentation [2] - ANSPaging is where data is broken up into equal blocks (pages), in order to make use of all of the storage available. Then, the pieces of data are put together in order to fully fill the memory available. Uses physical divisions. Segmentation is where the data is separated logically into chunks of unequal size to keep certain code together called segments (such as loops, where, if separated, would be inefficient). The data is then put together in a logical order to get the most out of the memory available.

  • Both split up files into chunks
  • Both try to use the most out of RAM
  • Both ways of partitioning / splitting up memory

With hundreds of different hardware devices from different manufacturers, it's impossible for an Operating System to know how to interact with them all - especially new devices What are hypervisors? - ANSHypervisors are software which enables virtualisation What are the different types of operating system? - ANS- Distributed OS

  • Embedded OS
  • Multi-tasking OS
  • Multi-User OS
  • Real-Time OS
  • BIOS What are virtual machines? - ANSAny instance where software is used to take on the function of a machine, including executing intermediate code or running an operating system within another. What does WIMP stand for? - ANSwindows icon menus pointer What is a BIOS? - ANSBasic Input Output System

Function - to detect, initialise and test system hardware, then load the OS into RAM Stored in EPROM (Erasable Programmable Read-Only Memory) What is a distributed operating system? - ANSGroups of computers working together on a single task, coordinated by the operating system Appears to the user that it's a single system being used (referred to as 'transparency') Form of parallel processing What is an Operating System? - ANSProgram or collection of programs that manage the operations of the computer for the user. Enables user to communicate with hardware What is paging? - ANS- Memory is divided into a number of equal size 'frames'.

  • Each process is divided into a number of equal size 'pages' of the same length as frames.
  • A process is loaded by loading all of its pages into available, not necessarily contiguous, frames

data mart - ANSsubset of warehouse for a single asset like finance data mining - ANSDiscover patterns and relationships data model - ANSdiagram of data and there relationship data redundancy - ANSdata is copies and separated in several locations data warehouse - ANSstores historical data - like transactions database approach - ANSdata shared with multiple application Database as a service (DaaS) - ANSaccessed by client through network like cloud computing Database Management Systems (DBMS) - ANSinterface between the database and the user DBMS - ANSUsed to create one or more tables Entity Class - ANSRepresenting a row and a generalized class of people, pace or thing Entity-relationship diagram - ANSgraphical symbols to show data

Field (column) - ANSstores a different element of data flat file - ANSrecords with no relationships to others joining - ANScombines two or more tables linking - ANScombines two or more tables that share at least one common data Logical design - ANSabstract model of data that needs to be structured OLAB - ANSSoftware that can explore data in multiple perspectives Physical design - ANSlogical database with cost considerations Primary key - ANSField or set of fields that uniquely identifies the record projecting - ANSeliminates columns Record (row) - ANSData for one item, person or transaction relational database model - ANSdescribes data using a standard tabular format relationship database - ANSorganized data into multiple tables

data item - ANSspecific value of an attribute data mart - ANSsubset of warehouse for a single asset like finance data mining - ANSDiscover patterns and relationships data model - ANSdiagram of data and there relationship data redundancy - ANSdata is copies and separated in several locations data warehouse - ANSstores historical data - like transactions database approach - ANSdata shared with multiple application Database as a service (DaaS) - ANSaccessed by client through network like cloud computing Database Management Systems (DBMS) - ANSinterface between the database and the user DBMS - ANSUsed to create one or more tables Entity Class - ANSRepresenting a row and a generalized class of people, pace or thing Entity-relationship diagram - ANSgraphical symbols to show data

Field (column) - ANSstores a different element of data flat file - ANSrecords with no relationships to others joining - ANScombines two or more tables linking - ANScombines two or more tables that share at least one common data Logical design - ANSabstract model of data that needs to be structured OLAB - ANSSoftware that can explore data in multiple perspectives Physical design - ANSlogical database with cost considerations Primary key - ANSField or set of fields that uniquely identifies the record projecting - ANSeliminates columns Record (row) - ANSData for one item, person or transaction relational database model - ANSdescribes data using a standard tabular format relationship database - ANSorganized data into multiple tables

data item - ANSspecific value of an attribute data mart - ANSsubset of warehouse for a single asset like finance data mining - ANSDiscover patterns and relationships data model - ANSdiagram of data and there relationship data redundancy - ANSdata is copies and separated in several locations data warehouse - ANSstores historical data - like transactions database approach - ANSdata shared with multiple application Database as a service (DaaS) - ANSaccessed by client through network like cloud computing Database Management Systems (DBMS) - ANSinterface between the database and the user DBMS - ANSUsed to create one or more tables Entity Class - ANSRepresenting a row and a generalized class of people, pace or thing

Entity-relationship diagram - ANSgraphical symbols to show data Field (column) - ANSstores a different element of data flat file - ANSrecords with no relationships to others joining - ANScombines two or more tables linking - ANScombines two or more tables that share at least one common data Logical design - ANSabstract model of data that needs to be structured OLAB - ANSSoftware that can explore data in multiple perspectives Physical design - ANSlogical database with cost considerations Primary key - ANSField or set of fields that uniquely identifies the record projecting - ANSeliminates columns Record (row) - ANSData for one item, person or transaction relational database model - ANSdescribes data using a standard tabular format