Docsity

System Software Notes: Operating Systems Concepts and Principles, Exams of Software Development

Toggle sidebar
bg1
System software notes 10cs52
(vtuplanet.com), System
Programming Lecture Notes 2024-
2025 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]
pg. 1
[DOCUMENT TITLE]
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download System Software Notes: Operating Systems Concepts and Principles and more Exams Software Development in PDF only on Docsity!

System software notes 10cs

(vtuplanet.com), System

Programming Lecture Notes 2024-

2025 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 Scheduling allows for processes to be ordered in a way that is beneficial. It ensures efficiency and fairness between parties using the program. Maximize number of interactive users. Benefits of virtual machine? – ANS Energy consumption reduction More control over network and users Easy to move file of virtual machine Compare and contrast the functions of operating systems designed for a personal computer and a satellite navigation system in a car [7]- ANSA personal computer is likely to be a multi-task operating system or a general purpose operating system, whereas a satellite navigation system in a car is likely to be an embedded system. A multi-task operating system allows multiple tasks to be seemingly carried out at once, but the operating system just rapidly switches between the tasks. In contrast, an embedded system is built for limited, specific functions, based on what is required. A multi-task operating system is used for many types of personal computers, and it doesn't matter what tasks are being carried out, whereas an embedded system has a function specific to the device it is built into only. 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.

The use of memory by programs and data therefore needs to be managed: Two main methods:

  • Paging
  • Segmentation Virtual memory Explain processor scheduling – ANS Multi-tasking operating systems have to enable more than one program to run (seemingly) at the same time (and more than one operation in an individual program too) 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
  • Use virtual memory / backing store to swap parts of programs
  • Allow programs larger than memory to run / insufficient memory
  • Allows programs to be stored in memory non-contiguously Types of Processor Scheduling: - ANS- First Come First Served E.g. queue in a shop
  • Shortest Job First Processor chooses the shorter jobs before the longer ones. (Needs to know the length of each job first)
  • Round Robin Each process allocated a time slice (quantum) Fair, but not always efficient
  • Shortest Remaining Time Similar to shortest job first, but longer processes can be interrupted by shorter ones
  • Multi-level Feedback Queues All the above assume a single 'queue' of processes to be carried out. Multi-level Feedback Queues is an algorithm which uses more than one queue and moves jobs between them to prioritise more efficiently What are device drivers? - ANSDevice Drivers are pieces of software which enable the OS to communicate with the hardware device and vice versa 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 is prioritised: interrupts or CPU processes? - ANSAll interrupts have priority over CPU processes, but some interrupts have priorities over others, so not always as simple as taking them in the order they arrive. What is segmentation? - ANS- Similar to paging, but segments not necessarily the same size

  • Segments are logical divisions, rather than physical divisions
  • Segments are complete sections of programs Business Intelligence (BI) - ANStransform raw data into useful information concurrency control - ANStwo or more people attempting to access the same record at the same time data center - ANSdata servers in a building that is climate controlled Data Hierarchy - ANSData in a database organized into sequential levels 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 selecting - ANSeliminating and picking rows single user - ANSone person can use it at a time SQL - From - ANSspecify table SQL - Select - ANSSpecify attribute SQL - Where - ANSSpecify the condition Structured query language (SQL) - ANSstandard language for relational databases Traditional approach - ANSdata files dedicated to each system Attribute - ANScharacteristic of an entity Business Intelligence (BI) - ANStransform raw data into useful information

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 selecting - ANSeliminating and picking rows single user - ANSone person can use it at a time SQL - From - ANSspecify table SQL - Select - ANSSpecify attribute SQL - Where - ANSSpecify the condition Structured query language (SQL) - ANSstandard language for relational databases Traditional approach - ANSdata files dedicated to each system Attribute - ANScharacteristic of an entity Business Intelligence (BI) - ANStransform raw data into useful information concurrency control - ANStwo or more people attempting to access the same record at the same time data center - ANSdata servers in a building that is climate controlled Data Hierarchy - ANSData in a database organized into sequential levels 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 selecting - ANSeliminating and picking rows single user - ANSone person can use it at a time SQL - From - ANSspecify table SQL - Select - ANSSpecify attribute

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 selecting - ANSeliminating and picking rows single user - ANSone person can use it at a time SQL - From - ANSspecify table SQL - Select - ANSSpecify attribute SQL - Where - ANSSpecify the condition Structured query language (SQL) - ANSstandard language for relational databases Traditional approach - ANSdata files dedicated to each system