Section 4: Operating Systems & File Systems

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/98

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

99 Terms

1
New cards

Modern software can be divided into two categories:

a. application software

b. system software

c. digital software

d. analog software

a. application software

b. system software

2
New cards

programs that help us solve real-world problems.

a. application software

b. system software

a. application software

3
New cards

Word processing programs, games, inventory control systems, automobile diagnostic programs, and missile guidance programs are all examples of _____.

a. application software

b. system software

a. application software

4
New cards

programs that manage a computer system and interact with hardware.

a. application software

b. system software

b. system software

5
New cards

Provides the tools and an environment where application software can be created and run; interacts directly with the hardware and provides more functionality than the hardware itself does.

system software

6
New cards

The _____ of a computer is the core of its system software.

Operating System

7
New cards

manages computer resources, such as memory and input/output devices; provides an interface through which a human can interact with the computer; allows an application program to interact with these other system resources.

Operating System

8
New cards

The technique of keeping multiple programs in main memory at the same time

Multiprogramming

9
New cards

To keep track of which programs are in memory and where in memory they reside.

Memory Management

10
New cards

A program in execution; dynamic entity that represents the program while it is being executed; an instance of a running program, including its current state and memory information.

Process

11
New cards

To carefully track the progress of a process and all of its intermediate states; the act of keeping track of information for active purposes.

Process Management

12
New cards

the method where an operating system decides which processes should be executed by the CPU and in what order.

CPU Scheduling

13
New cards

A system where programs and system resources are coordinated and executed without interaction between the user and the program; contains a set of jobs that need the same or similar resources

  • the operator doesn’t have to reload and prepare the same resources over and over.

Batch Processing

14
New cards

A system that allows multiple users to interact with a computer at the same time.

a. batch processing

b. CPU scheduling

c. timesharing

d. multiprogramming

c. timesharing

15
New cards

______ allowed multiple processes to be active at once, which gave rise to the ability for programmers to interact with the computer system directly, while still sharing its resources.

Multiprogramming

16
New cards

______ systems create the illusion that each user has exclusive access to the computer.

  • Each user does not have to actively compete for resources, though that is exactly what is happening behind the scenes.

Timesharing

17
New cards

The _____ manages the sharing of the resources, including the CPU, behind the scenes.

Operating System

18
New cards

means “in effect, though not in essence.”

Virtual

19
New cards

Software emulation of a physical computer, providing the same functionality as a physical machine.

Virtual Machine

20
New cards

A large, powerful computer that can handle many simultaneous users and tasks.

a. CPU

b. mainframe

c. desktop

d. operating system

b. mainframe

21
New cards

A monitor display and a keyboard.

a. desktop

b. dumb terminal

c. mainframe

d. virtual machine

b. dumb terminal

22
New cards

A users sits as a ______ and “logs in” to the _____. The _______ might be spread throughout a building, with the _____ residing in its own dedicated room. The ______ resides on the _______, and all processing occurs there.

a. mainframe

b. terminal

c. mainframe

d. operating system

e. dumb terminals

f. mainframe

1. terminal

2. mainframe

3. dumb terminals

4. mainframe

5. operating system

6. mainframe

23
New cards

_____ computers gave rise to minicomputers.

a. desktop

b. laptop

c. mainframe

d. operating system

c. mainframe

24
New cards

_____ became the basic hardware platform for timesharing systems.

a. mainframe

b. desktops

c. minicomputers

d. laptops

c. minicomputers

25
New cards

A system that must provide a guaranteed minimum response time to the user; a system where response time is crucial given the nature of the application domain.

Real-Time System

26
New cards

There are two kind addresses in the main memory:

a. digital address

b. logical address

c. named address

d. physical address

b. logical address

d. physical address

27
New cards

An address generated by the CPU during a program’s execution that is then translated to a physical address.

a. physical address

b. logical address

c. identifier

d. address binding

b. logical address

28
New cards

An actual address in the main memory device.

a. physical address

b. logical address

c. identifier

d. address binding

a. physical address

29
New cards

The mapping of a logical address to a physical address.

a. CPU Scheduling

b. memory management

c. identifier

d. address binding

d. address binding

30
New cards

A memory management method where all processes are loaded into a single continuous block of memory.

a. dynamic-partition technique

b. fixed-partition technique

c. single contiguous memory management

d. memory management

c. single contiguous memory management

31
New cards

It is the ______’s job to ensure that one program doesn’t access another memory space.

a. operating system

b. memory management

c. CPU

d. mainframe

a. operating system

32
New cards

Two strategies can be used to partition memory:

a. flexible partitions

b. single partitions

c. fixed partitions

d. dynamic partitions

c. fixed partitions

d. dynamic partitions

33
New cards

With a ______ technique, main memory is divided into a particular number of partitions.

a. flexible partition

b. single partition

c. fixed partition

d. dynamic partition

c. fixed partition

34
New cards

A memory management technique where memory is divided into a specific number of partitions or fixed-sized partitions with each one holding one process.

a. fixed-partition technique

b. dynamic-partition technique

c. single contiguous memory management

d. complex memory management

a. fixed-partition technique

35
New cards

With the _______, the partitions are created to fit the unique needs of the programs.

a. flexible-partition technique

b. single-partition technique

c. fixed-partition technique

d. dynamic-partition technique

d. dynamic-partition techniqueA

36
New cards

A memory management technique where memory is divided into variable-sized partitions based on the needs of processes.

a. flexible-partition technique

b. single-partition technique

c. fixed-partition technique

d. dynamic-partition technique

d. dynamic-partition technique

37
New cards

What is a benefit to using paged memory management?

a. It allows multiple processes in memory without splitting them into pieces.

b. It does not require a translation between logical and physical addresses.

c. It is the simplest of all techniques to implement and manage.

d. A process no longer needs to be stored in a single memory block.

d. A process no longer needs to be stored in a single memory block.

38
New cards

What is one characteristic of the dynamic-partition technique for creating partitions in partition memory management?

a. Memory is divided into fixed-size frames to minimize fragmentation.

b. The operating system's table of partition addresses will change as programs load and finish their execution.

c. The operating system's table of partition addresses does not change once it is set.

d. Address binding only needs to consider the location of the operating system.

b. The operating system's table of partition addresses will change as programs load and finish their execution.

39
New cards

What is the name of the CPU scheduling method in which a running process is not interrupted and is allowed to finish before another process starts?

a. nonpreemptive

b. highest response ratio next

c. round-robin

d. first come, first served

a. nonpreemptive

40
New cards

Which statement describes a characteristic of sequential file access?

a. Files are conceptually divided into numbered logical records.

b. The user can read and write records in any particular order.

c. The file pointer can be set to any record using the record number.

d. The file is seen as a linear structure with no random access.

d. The file is seen as a linear structure with no random access.

41
New cards

What is known as a path that specifies the location of a file or a directory starting from the current working directory?

a. relative path

b. root path

c. tree path

d. working path

a. relative path

42
New cards

What is one thing that all file systems are responsible for?

a. Managing the storage of data in primary memory

b. Providing users with a graphical interface for file access

c. Organizing the storage of data on memory storage devices

d. Directly interacting with hardware for data access

c. Organizing the storage of data on memory storage devices

43
New cards

Which file extension is commonly used for program source files?

a. mp3

b. py

c. png

d. html

b. py

44
New cards

In a _____, as programs are loaded, space is “carved out“, using only the space needed to accommodate the program and leaving a new, smaller empty partition, which may be used by another program later.

a. framed memory technique

b. fixed-partition technique

c. dynamic-partition technique

d. paged memory technique

c. dynamic-partition technique

45
New cards

In _____ the address information changes as programs come and go.

a. framed memories

b. fixed partitions

c. dynamic partitions

d. paged memories

c. dynamic partitions

46
New cards

There are various ways an Operating System might handle the details of the address translation. One way it to use 2 special-purpose registers in the CPU to help manage addressing.

What are the two registers?

a. base register

b. fixed register

c. bounds register

d. dynamic register

a. base register

c. bounds register

47
New cards

When a program becomes active on the CPU, the OS stores the address of the beginning of that program’s partition into the _____. Similarly, the length of the partition is stored in the _____.

a. base register

b. fixed register

c. bounds register

d. dynamic register

a. base register; c. bounds register

48
New cards

A register in the CPU that holds the beginning address of the current partition.

a. base register

b. fixed register

c. bounds register

d. dynamic register

a. base register

49
New cards

A register that holds the length of the current partition; a register that holds the ending address of a memory segment.

a. base register

b. fixed register

c. bounds register

d. dynamic register

c. bounds register

50
New cards

There are three general approaches to partition selection when trying to decide which partition to allocate to a new program:

a. first fit

b. good fit

c. neutral fit

d. best fit

e. worst fit

f. great fit

a. first fit

d. best fit

e. worst fit

51
New cards

A partition selection approach where the program is allocated to the first partition big enough to hold it.

First Fit

52
New cards

A partition selection approach where the program is allocated to the smallest partition big enough to hold it.

Best Fit

53
New cards

A partition selection approach where the program is allocated to the largest partition big enough to hold it.

Worst Fit

54
New cards

____ and ____ both work for fixed partitions. In dynamic partitions, _____ often works best because it leaves the largest possible empty partition, which may accommodate another program later on.

a. first fit

b. best fit

c. worst fit

first fit; best fit; worst fit

55
New cards

_______ places more of the burden on the operating system to keep track of allocated memory and to resolve addresses.

a. partition memory management

b. paged memory management

c. single contiguous memory management

b. paged memory management

56
New cards

In the _____ memory technique, main memory is divided into small fixed-size blocks of storage called frames.

a. partition memory management

b. paged memory management

c. single contiguous memory management

b. paged memory management

57
New cards

A memory management technique where processes are divided into fixed-sized pages and stored in memory frames when loaded.

Paged Memory Management

58
New cards

A fixed-size portion of main memory that holds a process page.

Frames.

59
New cards

A process is divided into _____ that we assume are the same size as a frame.

a. portions

b. partitions

c. pages

d. blocks

c. pages

60
New cards

A fixed-sized portion of a process that is stored into a memory frame.

Pages

61
New cards

The table used by the operating system to keep track of page/frame relationships; it maps each page to the frame in which it is loaded.

Page-Map-Table (PMT)

62
New cards

An extension to paged memory management where pages are brought into memory only when references (on demand).

d. page mapping

b. demand paging

c. instant paging

d. excessive page swapping

b. demand paging

63
New cards

The act of bringing a page into memory from secondary memory.

Page Swap

64
New cards

The illusion that there are no restrictions on the size of a program (because the entire program is not necessarily in memory at the same time.

A memory management technique that creates an illusion of a large contiguous memory space by using disk storage to extend physical memory.

Virtual MemoryE

65
New cards

Excessive page swapping is called

Thrashing

66
New cards

The stages a process moves through as it is managed by the operating system.

a. CPU scheduling

b. process control blocks

c. memory processing

d. process states

d. process states

67
New cards

What are the 5 process states?

New, Ready, Running, Waiting, Terminated.

68
New cards

In the ___ state, a process is being created.

a. new

b. waiting

c. ready

d. running

e. terminated

e. finished

a . new

69
New cards

A process that has no barriers to its executions is in the _____ state. A process in this state is not waiting for an event to occur or for data to be brought in from secondary memory. Instead, it is waiting for its chance to use the CPU.

a. new

b. waiting

c. ready

d. running

e. terminated

d. finished

c. ready

70
New cards

A process in the _____ state is currently being executed by the CPU.

a. new

b. waiting

c. ready

d. running

e. terminated

d. finished

d. running

71
New cards

A process in the _____ state is currently waiting for resources (other than the CPU).

a. new

b. waiting

c. ready

d. running

e. terminated

d. finished

b. waiting

72
New cards

A process in the _____ state has completed its execution and is no longer active.

a. new

b. waiting

c. ready

d. running

e. terminated

d. finished

e. terminated

73
New cards

The operating system must manage a large amount of data for each active process. Usually, this data is stored in a data structure called a _______.

a. file

b. process control block

b. file system

d. directory

b. process control block

74
New cards

A data structure used by the operating system to manage information about a process or store all information about a process.

Process Control Block (PCB)

75
New cards

The act of determining which processes in the ready state should be moved to the running state.

CPU Scheduling

76
New cards

A CPU scheduling method where a process once started cannot be interrupted by another process and must run to completion before the CPU can be allocated to another process.

a. nonpreemptive

b. preemptive

c. first come, first served

d. round-robin

a. nonpreemptive

77
New cards

A CPU scheduling method where a running process can be interrupted and replaced by another process before it is finished.

a. nonpreemptive

b. preemptive

c. first come, first served

d. round-robin

b. preemptive

78
New cards

The CPU scheduling metric that measures the elapsed time between a process’s arrival in the ready state and its ultimate completion.

Turnaround Time

79
New cards

Three approaches to determine which process gets chosen first to move from the ready state to the running state:

a. nonpreemptive

b. preemptive

c. shortest job next

d. first come, first served

e. round-robin

f. last job first

c. shortest job next

d. first come, first served

e. round-robin

80
New cards

In the _______ scheduling approach, processes are moved to the CPU in the order in which they arrive in the running state.

a. nonpreemptive

b. preemptive

c. shortest job next

d. first come, first served

e. round-robin

f. last job first

d. first come, first served

81
New cards

True or False: First come, first served is preemptive.

False. It’s nonpreemptive.

82
New cards

True or False: The turnaround time for each process would be its completion time minus arrival time.

True.

83
New cards

The ______ CPU-scheduling approach looks at all processes in the ready state and dispatches the one with the smallest service time.

a. nonpreemptive

b. preemptive

c. shortest job next

d. first come, first served

e. round-robin

f. last job first

c. shortest job next

84
New cards

A scheduling approach that distributes the processing time equitably among all ready processes.

a. nonpreemptive

b. preemptive

c. shortest job next

d. first come, first served

e. round-robin

f. last job first

e. round-robin

85
New cards

The amount of time each process receives before it is preempted (prevented from happening by stopping it) and returned to the ready state to allow another process to take its turn.

Time Slice

86
New cards

Which best describes nonvolatile memory?

a. the data stored on it is not maintained and lost when the power is not on.

b. the data stored on it is maintained even when power is not on.

b. the data stored on it is maintained even when power is not on.

87
New cards

A named collection of related data.

a. file system

b. list

c. file

d. record

c. file

88
New cards

The logical view that an operating system provided so that users can manage data as a collection of file.

a. file

b. file system

c. record

d. directories

b. file system

89
New cards

A file system is often organized by grouping files into ____.

a. systems

b. directories

c. lists

d. records

b. directories

90
New cards

A named group of files; a container used to organized file into a hierarchical structure on a computer system.

a. file system

b. directories

c. system

d. records

b. directories

91
New cards

A file that contains characters.

a. list

b. record

c. text file

d. file system

c. text file

92
New cards

A file that contains data in a specific format, requiring a special interpretation of its bits.

a. text file

b. binary file

c. file system

d. directory

b. binary file

93
New cards

The specific kind of information contained in a file; the classification or category of a file based on its content and format that determines how it can be used or opened.

a. file type

b. data type

c. identifier

d. record

a. file type

94
New cards

File names are often separated, usually by a period, into two parts:

a. the main name

b. the computer name

c. the file location

d. the file extension

a. the main name

d. the file extension

95
New cards

What is the file extension in MyProg.java?

java

96
New cards

The part of a file name that indicates the file type.

File Extension

97
New cards

The data in a file can be accessed in several different ways. Two primary techniques are:

a. linear access

b. sequential access

c. insertion access

d. direct access

b. sequential access

d. direct access

98
New cards

The most common access technique, and the simplest to implement, is _____, which views the file as a linear structure; it requires that the data in the file be processed in order.

a. linear access

b. sequential access

c. insertion access

d. direct access

b. sequential access

99
New cards

The directory containing another directory.

a. subdirectory

b. root directory

c. working directory

d. parent directory

d. parent directory