Docsity

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

Toggle sidebar
bg1
[Document title]
System software notes
10cs52(vtuplanet.com),
System Programming Lecture
notes
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.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

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

System software notes

10cs52(vtuplanet.com),

System Programming Lecture

notes

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. Maximise number of interactive users. Benefits of virtual machine? - ANSEnergy 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.

  • 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. - ANSSupports more than one user... ...at the same time E.g. Unix Because each user will no doubt want to use more than one application at once, a multi-user OS needs to be a multi-tasking OS as well! But not all multi-tasking OS are multi-user OS. Not the same as more than one person having a user account on a computer Drawbacks of virtual machine? - ANSSecurity as it's easy to move the file of the virtual machine around - what the network manager is there for Explain memory management - ANSComputer systems have a finite amount of memory In many cases, this isn't enough to store everything it needs to The use of memory by programs and data therefore needs to be managed: Two main methods:
  • Paging
  • Segmentation Virtual memory Explain processor scheduling - ANSMulti 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 - ANSHardware 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? - ANSIn 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: - ANSSignal from a software program, hardware device or internal clock to the CPU CPU stops what it's 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.

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 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

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

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 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

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