1/99
Looks like no tags are added yet.
Name at least three preemptive schedulers!
Round robin (RR)
SRTF
Multilevel feedback queues (MFQ)
the traditional UNIX scheduler
List the most important three states of a task.
ready-to-run
running
waiting
What kinds of data are stored in an inode?
pointers to the data blocks
permissions
type
owner
group
size
time stamps
link count
The source of an operation system may contain MORE than ten million lines of code.
True
The source of an operation system may NOT contain more than ten million lines of code.
False
The kernel
runs in protected mode
governs applications operating in user mode.
True
The kernel
runs in user mode
governs applications operating
in protected mode.
False
In embedded operating systems
the application and the OS
are NOT ALWAYS separated
sometimes they are compiled into a single executable.
True
In embedded operating systems
the application and the OS are ALWAYS separated
they are NEVER compiled into a single executable.
False
Systemd is a sysinit alternative.
True
Systemd is NOT a sysinit alternative.
False
A modular kernel may NOT be a monolithic program.
False
A modular kernel
may be a monolithic program.
True
Response time is the time interval
between
task creation (and)
its first output (response).
False
Response time is the time interval
between
a request ( and )
its first response.
True
The ls command on Unix systems lists files.
True
The ps command on Unix systems list processes.
True
Memory-intensive tasks may become I/O-intensive
if there is NOT enough memory.
True
Memory-intensive tasks may become I/O-intensive if there is enough memory.
False
A process is a sequentially executed thread.
False
A thread is a sequentially executed task.
True
ALL administrative data of a task is stored in the kernel's memory.
False
NOT ALL administrative data of a task is stored in the kernel's memory.
True
It is very hard to implement the shortest job first (SJF) scheduler in real operating systems.
True
It is easy to implement the
shortest job first (SJF) scheduler
in real operating systems.
False
Schedulers schedule processes NOT threads.
False
Schedulers schedule BOTH processes and threads.
True
The Round-robin scheduling avoids starvation.
True
The Round-robin scheduling does NOT avoid starvation.
False
The SJF may be seen as a priority-based scheduler.
True
The SJF may NOT be seen as a priority-based scheduler.
False
Today's operating systems mainly use the hard CPU-affinity in multiprocessor scheduling.
False
Today's operating systems mainly use
the soft CPU-affinity in multiprocessor scheduling.
True
Tasks may NOT use more memory that is physically available in the system.
False
Tasks may use more memory than is physically available in the system.
True
The number of page tables >> the number of frame tables.
True
The number of page tables << the number of frame tables.
False
If page fault frequency is higher
then memory-intensive tasks spend MORE time
in blocked (waiting) state.
True
If page fault frequency is higher
then memory-intensive tasks spend LESS time
in blocked (waiting) state.
False
The page fault frequency ALWAYS decreases if we add more physical memory to the system.
False
If we add more physical memory to the system.
The page fault frequency does
NOT ALWAYS decrease
True
Today's operating systems mainly use anticipatory paging because it is able to predict what pages will be used in the near future.
False
Anticipatory paging is NOT ALWAYS able
to predict what pages will be used in the near future.
True
The basic purpose of the operating system is
the configuration and management of hardware devices.
False
The configuration and management of hardware devices is
ONLY ONE PART of the purpose of the operating system.
True
An embedded operating system is real-time software specialized for a given task.
True
An embedded operating system is general-purpose software, NOT specialized for a given task.
False
Microkernels have a distributed structure, in which
the duties of the kernel are handled by essentially mutually independent tasks
running in user mode.
True
Microkernels have a monolithic structure, in which
all duties of the kernel are handled
by one program running in kernel mode.
False
The UNIX runlevel defines
the range of services running in the system.
True
The UNIX runlevel does NOT
affect the range of services
running in the system.
False
The OS X XNU kernel is a hybrid kernel.
True
The OS X XNU kernel is NOT a hybrid kernel.
False
Memory-intensive tasks may become I/O-intensive if they need a lot of memory.
True
Memory-intensive tasks NEVER become I/O-intensive, even if they need a lot of memory.
False
The turnaround time is
the total time of the
ready-to-run
running
ready-to-run cycle
traversed in the state-transition graph.
False
The turnaround time is the time that a task needs to finish its operation.
True
Running a multiprogrammed operating system requires multiple processor cores.
False
A multiprogrammed operating system can run on a single processor core.
True
A thread is a process that runs in
an address space shared with other threads.
True
A thread is a process that runs in its own address space,
NOT shared with other threads.
False
The administrative data of tasks may be placed
in the address space of the kernel and of the tasks.
True
The administrative data of tasks may be placed
ONLY in the address space of the kernel.
False
During scheduling,
we can keep track of an ordered set of tasks (e.g. by priority) MOST EFFICIENTLY with chained lists.
False
During scheduling
chained lists are NOT the most efficient way
to keep track of an ORDERED set of tasks (e.g. by priority).
True
The scheduling algorithm that serves the longest-waiting task first (FCFS) uses a FIFO data structure.
True
The scheduling algorithm that serves
the longest-waiting task first (FCFS)
does NOT use a FIFO data structure.
False
Round-robin scheduling is NOT cooperative, and it avoids starvation.
True
Round-robin scheduling is cooperative,
it does NOT avoid starvation.
False
The shortest-CPU-burst (SJF) algorithm has constant complexity.
False
The shortest-CPU-burst (SJF) algorithm has
linear complexity.
True
Multilevel feedback queue (MFQ) schedulers
serve I/O-intensive tasks at high priority levels.
True
Multilevel feedback queue (MFQ) schedulers
serve I/O-intensive tasks at low priority levels.
False
In the case of a read-write collision,
the PRAM (pipelined RAM) model
ALWAYS executes the write operation first,
so that the read can already return with the new value.
False
In the case of a read-write collision, the PRAM (pipelined RAM) model may return
either the new or the old value for the read.
True
In asynchronous message passing, the completion of the send operation precedes the start of the receive operation.
False
In asynchronous message passing, the completion of the send operation does NOT ALWAYS precede the start of the receive operation.
True
Synchronization is the coordination of the operation of tasks
BY constraining the execution of operations in time.
True
Synchronization is the coordination of the operation of tasks
WITHOUT constraining the execution of operations in time.
False
The mutex is a synchronization tool suitable for protecting multi-instance resources.
False
The mutex is NOT a synchronization tool suitable for protecting multi-instance resources.
True
The BEST way of protection against deadlock is the ostrich algorithm.
False
The ostrich algorithm is NOT the best way of protection against deadlock.
True
List a few examples for heterogeneous systems.
CPU with GPU
CPU with coprocessor
DSP
video decoder
display engine
multi-type cores
OpenCL
FPGA threads
The message queue is a
direct / indirect communication method.
indirect
The main parts of a task's runtime context are …
program counter (PC)
CPU registers
MMU state
Main frame table fields are …
address
state
reference counter
Write down the names of two different command line shells
bash
zsh
What is more reliable: RAID0 or RAID1?
RAID1
The …….. scheduling algorithm is non-preemptive
from the ready-to-run tasks
It selects for running next the one with the shortest estimated CPU burst.
Shortest job first (SJF)
The necessary conditions for the emergence of a deadlock. List
mutual exclusion
busy waiting
only voluntarily resource releasing
circular waiting
Starvation of tasks is the phenomenon when a ready-to-run task is NOT in deadlock
but there is no guarantee that …….. .
it will EVER get the CPU
The UNIX fork() system call …….. the given process, while the exec() system call …….. .
duplicates
loads the code of a new program into the memory space of the calling process
In the case of a non-preemptive scheduler, rescheduling can occur when the currently running task …….. or …….. .
terminates itself
performs
a system call
waits for its result
The swapping system frees physical memory by …
moving frames (pages)
from RAM to the swap space
The second chance algorithm arranges the memory pages into a …….. data structure.
FIFO
Page locking is necessary so that …
newly loaded pages
pages under an I/O operation cannot be replaced
The basic variants of multiprocessor scheduling
asymmetrical
symmetrical
In message-passing communication,
the speed and latency of data transfer << the PRAM model because of:
moving data
context changes
system calls
protective mechanisms
What are the FOUR necessary conditions for deadlocks?
mutual exclusion
busy waiting
only voluntarily resource releasing,
circular waiting