/
AI Flashcards
Save to my account
Sign up
AI Flashcards
Operating System Essentials
Study
1
Question
What role does an operating system play between users and hardware?
Page 1
Answer
Acts as an intermediary managing hardware resources and providing services to applications
2
Question
What is the primary function of the command interpreter in an OS?
Page 1
Answer
To get and execute the next user-specified command
3
Question
Which CPU scheduling algorithms are commonly used in operating systems?
Page 1
Answer
First Come First Served, Shortest Job First, Priority, Round Robin, Multilevel Queue, Multilevel Feedback Queue
4
Question
How do applications access operating system services?
Page 2
Answer
Through system calls like Open, Close, Read, Write
5
Question
What is CPU scheduling the basis of?
Page 2
Answer
Multiprogramming operating systems
6
Question
Which statement about the kernel is false?
Page 2
Answer
Kernel modules cannot be loaded in a running OS
7
Question
Which errors are handled by the operating system?
Page 2
Answer
Lack of paper in printer, connection failure, power failure
8
Question
Where is the operating system typically placed in memory?
Page 3
Answer
Either low or high memory depending on interrupt vector location
9
Question
Where do most OSes write error information if a process fails?
Page 3
Answer
Log file
10
Question
Which is not a real-time operating system?
Page 3
Answer
Palm OS
11
Question
What type of kernel does OS X use?
Page 3
Answer
Hybrid kernel
12
Question
What does each process have its own in an OS?
Page 3
Answer
Address space, open files, pending alarms, signals, and handlers
13
Question
In a timeshare OS, what state does a process enter after its time slot ends?
Page 4
Answer
Ready state
14
Question
What is cascading termination?
Page 4
Answer
Termination of all child processes when the parent terminates normally or abnormally
15
Question
From the blocked state, where does a process go after I/O completion?
Page 4
Answer
Ready state
16
Question
What is transient operating system code?
Page 5
Answer
Code that comes and goes as needed
17
Question
What does the process dispatcher in the scheduler do?
Page 5
Answer
Assigns ready processes to the CPU
18
Question
Why is FCFS troublesome for time-sharing systems?
Page 5
Answer
Users need regular CPU shares, but FCFS may cause long waits
19
Question
When should an OS check for deadlock?
Page 5
Answer
Every time a resource request is made and at fixed intervals
20
Question
What does a deadlock avoidance algorithm examine?
Page 6
Answer
Resource allocation state
21
Question
When can swapping not be done?
Page 6
Answer
When a process has pending I/O or only executes I/O to OS buffers
22
Question
What does main memory primarily accommodate?
Page 6
Answer
Operating system
23
Question
What disk-related tasks is the OS responsible for?
Page 6
Answer
Bad-block recovery, booting, initialization
24
Question
How are the OS and processes protected from modification?
Page 6
Answer
CPU addresses checked against relocation and limit registers
25
Question
How does transient code affect OS size during execution?
Page 7
Answer
Changes the size
26
Question
What table tracks frame allocation in the OS?
Page 7
Answer
Frame table
27
Question
Can user programs implement dynamic loading without OS/hardware support?
Page 7
Answer
Yes
28
Question
What provides a uniform interface to the I/O subsystem?
Page 7
Answer
Device drivers
29
Question
What must be true in a real-time OS for tasks?
Page 8
Answer
Serviced by deadline period
30
Question
How does hard real-time OS compare to soft in jitter?
Page 8
Answer
Less jitter