OS True/False/Fill the blanks

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play

1/99

encourage image

There are no tags or description

Looks like no tags are added yet.

100 Terms

1
New cards

Name at least three preemptive schedulers!

  • Round robin (RR)

  • SRTF

  • Multilevel feedback queues (MFQ)

  • the traditional UNIX scheduler


2
New cards

List the most important three states of a task.

  • ready-to-run

  • running

  • waiting


3
New cards

What kinds of data are stored in an inode?

  • pointers to the data blocks

  • permissions

  • type

  • owner

  • group

  • size

  • time stamps

  • link count


4
New cards

The source of an operation system may contain MORE than ten million lines of code.

True

5
New cards

The source of an operation system may NOT contain more than ten million lines of code.

False

6
New cards

The kernel

  • runs in protected mode

  • governs applications operating in user mode.


True

7
New cards

The kernel

  • runs in user mode

  • governs applications operating

    • in protected mode.


False

8
New cards

In embedded operating systems

the application and the OS

  • are NOT ALWAYS separated

  • sometimes they are compiled into a single executable.


True

9
New cards

In embedded operating systems

  • the application and the OS are ALWAYS separated

  • they are NEVER compiled into a single executable.


False

10
New cards

Systemd is a sysinit alternative.

True

11
New cards

Systemd is NOT a sysinit alternative.

False

12
New cards

A modular kernel may NOT be a monolithic program.

False

13
New cards

A modular kernel

  • may be a monolithic program.


True

14
New cards

Response time is the time interval

  • between

    • task creation (and)

    • its first output (response).


False

15
New cards

Response time is the time interval

  • between

    • a request ( and )

    • its first response.


True

16
New cards

The ls command on Unix systems lists files.

True

17
New cards

The ps command on Unix systems list processes.

True

18
New cards

Memory-intensive tasks may become I/O-intensive

if there is NOT enough memory.

True

19
New cards

Memory-intensive tasks may become I/O-intensive if there is enough memory.

False

20
New cards

A process is a sequentially executed thread.

False

21
New cards

A thread is a sequentially executed task.

True

22
New cards

ALL administrative data of a task is stored in the kernel's memory.

False

23
New cards

NOT ALL administrative data of a task is stored in the kernel's memory.

True

24
New cards

It is very hard to implement the shortest job first (SJF) scheduler in real operating systems.

True

25
New cards

It is easy to implement the

  • shortest job first (SJF) scheduler

in real operating systems.


False

26
New cards

Schedulers schedule processes NOT threads.

False

27
New cards

Schedulers schedule BOTH processes and threads.

True

28
New cards

The Round-robin scheduling avoids starvation.

True

29
New cards

The Round-robin scheduling does NOT avoid starvation.

False

30
New cards

The SJF may be seen as a priority-based scheduler.

True

31
New cards

The SJF may NOT be seen as a priority-based scheduler.

False

32
New cards

Today's operating systems mainly use the hard CPU-affinity in multiprocessor scheduling.

False

33
New cards

Today's operating systems mainly use

  • the soft CPU-affinity in multiprocessor scheduling.


True

34
New cards

Tasks may NOT use more memory that is physically available in the system.

False

35
New cards

Tasks may use more memory than is physically available in the system.

True

36
New cards

The number of page tables >> the number of frame tables.

True

37
New cards

The number of page tables << the number of frame tables.

False

38
New cards

If page fault frequency is higher

  • then memory-intensive tasks spend MORE time

    • in blocked (waiting) state.


True

39
New cards

If page fault frequency is higher

  • then memory-intensive tasks spend LESS time

    • in blocked (waiting) state.


False

40
New cards

The page fault frequency ALWAYS decreases if we add more physical memory to the system.

False

41
New cards

If we add more physical memory to the system.

  • The page fault frequency does

    • NOT ALWAYS decrease



True

42
New cards

Today's operating systems mainly use anticipatory paging because it is able to predict what pages will be used in the near future.

False

43
New cards

Anticipatory paging is NOT ALWAYS able

  • to predict what pages will be used in the near future.


True

44
New cards

The basic purpose of the operating system is

  • the configuration and management of hardware devices.


False

45
New cards

The configuration and management of hardware devices is

  • ONLY ONE PART of the purpose of the operating system.


True

46
New cards

An embedded operating system is real-time software specialized for a given task.

True

47
New cards

An embedded operating system is general-purpose software, NOT specialized for a given task.

False

48
New cards

Microkernels have a distributed structure, in which

  • the duties of the kernel are handled by essentially mutually independent tasks

  • running in user mode.


True

49
New cards

Microkernels have a monolithic structure, in which

  • all duties of the kernel are handled

    • by one program running in kernel mode.


False

50
New cards

The UNIX runlevel defines

  • the range of services running in the system.


True

51
New cards

The UNIX runlevel does NOT

  • affect the range of services

running in the system.


False

52
New cards

The OS X XNU kernel is a hybrid kernel.

True

53
New cards

The OS X XNU kernel is NOT a hybrid kernel.

False

54
New cards

Memory-intensive tasks may become I/O-intensive if they need a lot of memory.

True

55
New cards

Memory-intensive tasks NEVER become I/O-intensive, even if they need a lot of memory.

False

56
New cards

The turnaround time is

  • the total time of the

    • ready-to-run

    • running

    • ready-to-run cycle

traversed in the state-transition graph.


False

57
New cards

The turnaround time is the time that a task needs to finish its operation.

True

58
New cards

Running a multiprogrammed operating system requires multiple processor cores.

False

59
New cards

A multiprogrammed operating system can run on a single processor core.

True

60
New cards

A thread is a process that runs in

  • an address space shared with other threads.


True

61
New cards

A thread is a process that runs in its own address space,

  • NOT shared with other threads.


False

62
New cards

The administrative data of tasks may be placed

  • in the address space of the kernel and of the tasks.


True

63
New cards

The administrative data of tasks may be placed

  • ONLY in the address space of the kernel.


False

64
New cards

During scheduling,

  • we can keep track of an ordered set of tasks (e.g. by priority) MOST EFFICIENTLY with chained lists.


False

65
New cards

During scheduling

  • chained lists are NOT the most efficient way

to keep track of an ORDERED set of tasks (e.g. by priority).


True

66
New cards

The scheduling algorithm that serves the longest-waiting task first (FCFS) uses a FIFO data structure.

True

67
New cards

The scheduling algorithm that serves

  • the longest-waiting task first (FCFS)

    • does NOT use a FIFO data structure.


False

68
New cards

Round-robin scheduling is NOT cooperative, and it avoids starvation.

True

69
New cards

Round-robin scheduling is cooperative,

  • it does NOT avoid starvation.


False

70
New cards

The shortest-CPU-burst (SJF) algorithm has constant complexity.

False

71
New cards

The shortest-CPU-burst (SJF) algorithm has

  • linear complexity.


True

72
New cards

Multilevel feedback queue (MFQ) schedulers

  • serve I/O-intensive tasks at high priority levels.


True

73
New cards

Multilevel feedback queue (MFQ) schedulers

  • serve I/O-intensive tasks at low priority levels.


False

74
New cards

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

75
New cards

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

76
New cards

In asynchronous message passing, the completion of the send operation precedes the start of the receive operation.

False

77
New cards

In asynchronous message passing, the completion of the send operation does NOT ALWAYS precede the start of the receive operation.

True

78
New cards

Synchronization is the coordination of the operation of tasks

  • BY constraining the execution of operations in time.


True

79
New cards

Synchronization is the coordination of the operation of tasks

  • WITHOUT constraining the execution of operations in time.


False

80
New cards

The mutex is a synchronization tool suitable for protecting multi-instance resources.

False

81
New cards

The mutex is NOT a synchronization tool suitable for protecting multi-instance resources.

True

82
New cards

The BEST way of protection against deadlock is the ostrich algorithm.

False

83
New cards

The ostrich algorithm is NOT the best way of protection against deadlock.

True

84
New cards

List a few examples for heterogeneous systems.

  • CPU with GPU

  • CPU with coprocessor

  • DSP

  • video decoder

  • display engine

  • multi-type cores

  • OpenCL

  • FPGA threads


85
New cards

The message queue is a

  • direct / indirect communication method.


indirect

86
New cards

The main parts of a task's runtime context are …

  • program counter (PC)

  • CPU registers

  • MMU state


87
New cards

Main frame table fields are …

  • address

  • state

  • reference counter


88
New cards

Write down the names of two different command line shells

  • bash

  • zsh


89
New cards

What is more reliable: RAID0 or RAID1?

RAID1

90
New cards

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)

91
New cards

The necessary conditions for the emergence of a deadlock. List

  • mutual exclusion

  • busy waiting

  • only voluntarily resource releasing

  • circular waiting


92
New cards

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

93
New cards

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


94
New cards

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


95
New cards

The swapping system frees physical memory by …

  • moving frames (pages)

    • from RAM to the swap space


96
New cards

The second chance algorithm arranges the memory pages into a …….. data structure.

FIFO

97
New cards

Page locking is necessary so that …

  • newly loaded pages

  • pages under an I/O operation cannot be replaced


98
New cards

The basic variants of multiprocessor scheduling

  • asymmetrical

  • symmetrical


99
New cards

In message-passing communication,

  • the speed and latency of data transfer << the PRAM model because of:


  • moving data

  • context changes

  • system calls

  • protective mechanisms


100
New cards

What are the FOUR necessary conditions for deadlocks?

  • mutual exclusion

  • busy waiting

  • only voluntarily resource releasing,

  • circular waiting