Worksheets6. Operating systems 2
Total questions: 85
Worksheet time: 43mins
Example of a batch processing system
Payroll processing
Engine control unit in a car
seat booking system
Example of a real time control system
Payroll processing
Engine control unit in a car
seat booking system
Example of a real time transaction system
Payroll processing
Engine control unit in a car
seat booking system
A system usually designed to handle large volumes of data periodically such as calculating tax payable is an example of what kind of system?
single user
batch
multi user
muli tasking
What type of operating system would the following use - tablet or smartphone operating system
single-user
multi-user
multi-tasking
multi programming
Which operating system is decribed here - an operating system that is installed on a single deviceand cannot support multiple people logged in at the same time
single-user
multi-user
multi-tasking
multi programming
Which operating system is decribed here - an operating system can permit multiple people to log in. Each will have a local account on the operating system to assign the appropriate policy for their level of access. Most desktop operating systems fall into this category.
single-user
multi-user
multi-tasking
multi programming
Which operating system is decribed here - an operating systems permit multiple processes to execute at the same time. The vast majority of modern operating systems fall into this category. In order for this to happen, the operating system needs to be able to manage CPU scheduling and handle interrupts.
single-user
multi-user
multi-tasking
multi programming
Which operating system is decribed here - an operating systems that can only execute one program at a time. Its principal aim is to use the CPU to maximum efficiency and reduce idle time.
single-user
multi-user
multi-tasking
multi programming
The____________________________of an operating system permits interaction with the computer system and needs to be appropriate to the intended user.
Human computer interface
Graphical user interface
Windows icons menus and pointers
Natural language interaface
a mainframe computer is likely to be used by an expert so a ______________________ is appropriate
Human computer interface
Graphical user interface
Command line interface
Natural language interaface
Novice users may prefer a _______________ such as seen in a desktop or smartphone operating systems.
Human computer interface
Graphical user interface
Command line interface
Natural language interaface
Increasingly,______________________ are being used with voice command input.
Natural language interfaces
Graphical user interfaces
Command line interfaces
Human computer interafaces
What is an interrupt?
A user interaface for novice users
Hardware that connects operating systems
A process that forcesexecuting processes to be stopped to allow another to get CPU time
Interrupts can be generated by
Hardware: e.g. power button pressed.
Software: e.g. a program needs to run a routine (for example, to automatically save a document being edited by a user).
Time triggered: e.g. in data logging applications.
Peripheral: e.g. user has moved the mouse.
Which interrupt is the highest priority?
Hardware: e.g. power button pressed.
Software: e.g. a program needs to run a routine (for example, to automatically save a document being edited by a user).
Time triggered: e.g. in data logging applications.
Peripheral: e.g. user has moved the mouse.
Which interrupt is the second highest priority?
Hardware: e.g. power button pressed.
Software: e.g. a program needs to run a routine (for example, to automatically save a document being edited by a user).
Time triggered: e.g. in data logging applications.
Peripheral: e.g. user has moved the mouse.
Which interrupt is the third highest priority?
Hardware: e.g. power button pressed.
Software: e.g. a program needs to run a routine (for example, to automatically save a document being edited by a user).
Time triggered: e.g. in data logging applications.
Peripheral: e.g. user has moved the mouse.
Which interrupt has the least highest priority?
Hardware: e.g. power button pressed.
Software: e.g. a program needs to run a routine (for example, to automatically save a document being edited by a user).
Time triggered: e.g. in data logging applications.
Peripheral: e.g. user has moved the mouse.
This allows the most important processes access to the CPU precisely when needed. _____________ interrupts may have to wait to gain access.
Lower priority
Medium priority
Higher priority
Hardware
A standard computer contains __________ that is shared between processes and managed by the OS
memory (RAM)
memory (ROM)
memory (cache)
hardware
The ______________________ of a process must be stored in RAM as well as any data that is being worked upon.
meta data
application
instructions (machine code)
RAM can get overloaded which is why the _______________ is essential
maintenance manager
memory manager
control panel
task bar
Key design goals for memory management are
Allocate enough memory so each process can run
Split memory up so that it can be allocated to processes (paging/segmentation)
Ensure security so that other processes cannot access each other’s data
Defragment data that has been split
Key design goals for memory management are
Extend memory by using virtual memory
Use of the control panel to splt up tasks and applications
Allow efficient sharing of memory
Allocation in RAM can be done in two ways, they are
Paging
Segmentation
Threading
Polling
___________ must split RAM into workable chunks of storage and allocate those chunks to processes in a fair manner
control manager
task manager
mnaintenance manager
memory manager
This employs a table to monitor which process has been allocated which chunk of memory
defragmentation
allocation of RAM
setting up virtual memory
memory addressing
Allocation of RAM _______________________
allows RAM to be shared without worrying about accidentally overwriting each other
allows operating systems to boot up
frees up harddrive space
Instructions and data are all stored in RAM. This is called
memory addressing
interrupts
paging
humnan computer interface
Which of the following are the advantages of virtual memory? (Select two.)
Degree of multiprogramming is higher.
Decrease the average memory access time.
Decrease the effective memory access time.
Execute even processes whose larger than the size of RAM.
Responsibilities of OS include
Handling "interrupts" generated by the I/O controllers
Making external devices to work properly
Creating instructions to connect user's PC to the local network
Finding ways for student to answer this question
What is User's Interface?
The space between user and computer
The space between computer and software
The space between computer and user's actions
The space between me and you
How does the OS provide security
Using passwords or backing up files
keeping a check on other processes
making the
communication possible between the input and output devices and the computer
Allocating
areas of memory to different programs so that each program can run effectively
The ability of a computer to execute a program on two or more processors simultaneously is
Multiprogramming
Multitasking
Multiprocessing
Listening to music on the computer while browsing the internet at the same time is
Multiprogramming
Multitasking
Multiprocessing
What is the difference between paging and segmentation in memory management?
Paging splits the process to be loaded into equal size blocks
Paging splits the process to be loaded into variable sized, logical blocks
Paging allocates frames to hold the data on the hard drive
Paging is used on Windows computers, segmentation on MacOS
In modern operating systems, main memory is allocated to fixed size page frames which can be paged out to a swap file on secondary storage memory. This is termed _______________________ and permits the system to manage many more processes than it would be able to if it just relied on main memory alone.
fast memory
virtual memory
reading and writing memory
cache memory
In modern operating systems, main memory is allocated to fixed size page frames which can be paged out to a swap file on _____________________. This is termed virtual memory and permits the system to manage many more processes than it would be able to if it just relied on main memory alone.
secondary storage memory
virtual memory
reading and writing memory
cache memory
Reading and writing to main memory is fast. The same operation with secondary storage memory (virtual memory) is much _________. This would result in too much data waiting to be written to secondary storage memory.
slower
faster
smaller
larger
Reading and writing to main memory is fast. The same operation with secondary storage memory (virtual memory) is much slower. This would result in _________ data waiting to be written to secondary storage memory.
too much
too little
the same amount of
larger
______________ are used to allow data to be read from main memory and then written to secondary storage by using a buffer
interrupts
virtual memories
memory managers
file allocation tables
Single _______________ allows for only one operation (read or write) to take place at once. Double ________________ allows for read and write operations to take place at the same time which results in more consistent data transfer.
buffering
allocation
interrupting
memorising
_____ are used on devices to allow the CPU to perform other tasks while data is being processed
buffers
tables
memories
allocations
_________ are blocks of memory of fixed size that are referenced through a ___________table. This table contains the page number and offset to physical memory
pages: paging
threads: threading
allocations: allocation
segmented: segmentation
__________ allows blocks of memory to be used, which are variable in size
segmentation
paging
threading
polling
segments in memory are stored in a segmentation table and will record the ID, start address and _________ of each segment
power
length
page
use
________ is where the hard drive is used as additional memory in order to increase the number of processes that can be active at once
interface memory
cache memory
virtual memory
archived memory
when a process is saved in _________ it is suspended. When loaded back into RAM for processing it is restored
virtual memory
a paging table
ROM
permanent memory
when a process is saved in virtual memory it is suspended. When loaded back into RAM for processing it is restored
cache memory
RAM
ROM
permanent memory
______ tables will record which processes are located in RAM or in virtual memory
page
file allocation
segmentation
large
which operating system is described here? - An OS that has hardware connecting to to the server. The hardware can be from any networked device such as a client terminal, smartphone, PC or tablet.
multi-user
single-user
multi-tasking
real-time
which operating system is described here? - it is the process of swapping applications in and out of the CPU, giving the illusion that they are running parallel.
multi-user
single-user
multi-tasking
real-time
which operating system is described here? - all modern operating systems have the ability to run more than one program at once. The user is led to believe that the computer is doing many things at once, such as playing music, displaying a document and performing a virus scan.
multi-user
single-user
multi-tasking
real-time
which operating system is described here? - computers are serial machinesand by definition can only do one thing at a time. In order to implement this type of operating system, the OS ensures that each processis swapped in and out so that the user is under the impression that all the processes are running at the same time.
multi-user
multi-programming
multi-tasking
real-time
which operating system is described here? - this stores more than one job in the computer's main memory at the same time. These jobs appear to be processed by the computer's CPU simultaneously
multi-user
multi-programming
multi-tasking
real-time
which operating system is described here? - it optimises the use of the CPU by preventing it from being idle while waiting for a slower peripheral.
multi-user
multi-programming
multi-tasking
real-time
which operating system is described here? - must respond in a short amount of time, sometimes considered to be immediate, to input provided to the system
multi-user
multi-programming
real-time
single-user
which operating system is described here? - consideration must be taken away from general compuing needs and focused on very specific applications. You would not run this type of OS on a desktop PC, owing to the unpredictability of the software applications the user may install.
multi-user
multi-programming
real-time
single-user
which operating system is described here? - systems that require this type of OS include nuclear powwer stations and aircraft systems. If a decision or action is delayed because of software running slowly in a nuclear reactor, it might explode, which would be a disaster.
multi-user
multi-programming
real-time
single-user
some ____________ systems are also considered to be real time, for example travel agents with multiple stores across the country. If one store books the last seat of a cut price holiday, it should no longer allow any other store to book. The transaction needs to happen fast enough to stop multiple bookings from occurring an dthus is considered to be real time
multi-user
multi-programming
transaction-based
single-user
A __________ is a small block of memory inside hardware devices such as printers, keyboards and hard drives where work currently being handled by that device is stored
buffer
page
segment
thread
when an _________ occurs, the CPU will, on the next instruction cycle, automatically run some special OS code that responds to it. The current running process will be puased/stopped so that this event can be handled
allocation
OS task
OS buffer
interrupt
when the memory manager uses ________, it allocates fixed sized blocks of memory to processes
paging
segmentation
virtual memory
polling
when the memory manager uses paging, it allocates fixed sized blocks of memory to processes. These blocks are known as pages and are a physical method of __________
memory allocation
memory division
virtual memory
memory defragmentation
_______________ is an alternative method of allocating memory to processes, where segments are variably sized rather than fixed. Thus they can logically split RAM into chunks of the eaxct size requested rather than forcing data into fixed sized chunks
segmentation
paging
memorising
threading
one major advantage of __________ is that memory can be shared between processes, especially when combined with library software. Ifa block of code used by two processes is needed, it can be loaded into a section. When the process needs to access the code within the section, all it needs is the ________ ID and the offset
segmentation: segment
paging: page
allocationg: allocation
in order to store variably sized segments, the ___________ must store the length of each segment in the segmentation table
memory manager
memory addressor
virtual memory
when an interrupt occurs, a signal is sent to the CPU via the ________ or , in the case of a sodftware interrupt, a flag is set.
control bus
data bus
address bus
sometimes more than one interrupt can be sent to the CPU at the same time, or before the CPU has had a chance to deal with the previous interrupt. This is handled by simply setting multiple flags, but only if they are for two different interrupts. If more than one of the same interrupt is generated before the CPUhas had a chance to deal with it, the second subsequent interrupts are _______
executed
ignored
paused
reloaded
At the end of the fetch, decode, execute cycle, the CPU will check if an interrupt has occurred by looking at the interrupt register to see if any ______ have been set
tasks
buffers
flags
Each interrupt will be assigned a _______ depending on how critical it is to the system
table
priority
ID
buffer
Interrupt service routines (ISR) are bits of code that are automatically run when an interrupt occurs; these are normally within a __________
paging table
device driver
memory address register
control bus
