NEW
Font size
WorksheetsOperating System Concepts
Total questions: 37
Worksheet time: 19mins
What is the purpose of an interrupt in an operating system?
To schedule tasks for execution
To suspend the execution of a process
To signal the occurrence of an event needing immediate attention
To manage memory allocation
Which of the following is an example of a system call?
Open a file
Run a program
Terminate a process
All of the above
In which of the following scenarios does a process enter a “waiting” state?
The process is waiting for user input.
The process is running and utilizing the CPU.
The process is terminated.
The process is executing in the kernel mode.
What does the term “context switching” refer to in an operating system?
Changing from one process to another
Changing from one user to another
Switching between input and output devices
Switching from kernel mode to user mode
What is the function of the "scheduler" in an operating system?
Managing memory
Managing input/output devices
Assigning CPU time to processes
Handling process creation and termination
Which of the following is a characteristic of a distributed operating system?
It only runs on a single computer system.
It manages a collection of independent computers to appear as a single coherent system.
It uses only centralized control for resource management.
It does not support networking features.
Which of the following is the primary purpose of a "bootstrap loader"?
To load the operating system into memory during startup
To allocate memory to the operating system
To provide a user interface
To handle network communication
Which of the following is a method of process synchronization?
Multithreading
Semaphores
Context switching
Virtual memory
Which of the following techniques is used by an operating system to ensure that multiple processes can safely access shared resources?
Deadlock detection
Paging
Synchronization mechanisms
Process scheduling
A Process Control Block(PCB) does not contain which of the following?
Code
Stack
Bootstrap program
Data
The number of processes completed per unit time is known as __________
Output
Throughput
Efficiency
Capacity
A single thread of control allows the process to perform _________
only one task at a time
multiple tasks at a time
only two tasks at a time
all of the mentioned
The child process can __________
be a duplicate of the parent process
never be a duplicate of the parent process
cannot have another program loaded into it
never have another program loaded into it
Which process can be affected by other processes executing in the system?
cooperating process
child process
parent process
init process
When several processes access the same data concurrently and the outcome of the execution depends on the particular order in which the access takes place is called ________
dynamic condition
race condition
essential condition
critical condition
If a process is executing in its critical section, then no other processes can be executing in their critical section. What is this condition called?
mutual exclusion
critical exclusion
synchronous exclusion
asynchronous exclusion
Which one of the following is a synchronization tool?
thread
pipe
semaphore
socket
A semaphore is a shared integer variable __________
that can not drop below zero
that can not be more than zero
that can not drop below one
that can not be more than one
What is Interprocess communication?
allows processes to communicate and synchronize their actions when using the same address space
allows the processes to only synchronize their actions without communication
allows processes to communicate and synchronize their actions
none of the mentioned
Which of the following two operations are provided by the IPC facility?
write & delete message
delete & receive message
send & delete message
receive & send message
Concurrent access to shared data may result in ____________
data consistency
data insecurity
data inconsistency
none of the mentioned
The segment of code in which the process may change common variables, update tables, write into files is known as ____________
program
critical section
non – critical section
synchronizing
Which of the following conditions must be satisfied to solve the critical section problem?
Mutual Exclusion
Progress
Bounded Waiting
All of the mentioned
Mutual exclusion implies that ____________
if a process is executing in its critical section, then no other process must be executing in their critical sections
if a process is executing in its critical section, then other processes must be executing in their critical sections
if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes execution
none of the mentioned
Semaphore is a/an _______ to solve the critical section problem.
hardware for a system
special program for a system
integer variable
none of the mentioned
What are the two atomic operations permissible on semaphores?
wait and signal
stop and wait
hold and signal
none of the mentioned
What are the two kinds of semaphores?
mutex & counting
binary & counting
counting & decimal
decimal & binary
A binary semaphore is a semaphore with integer values ____________
1
-1
0.8
0.5
In the bounded buffer problem, there are the empty and full semaphores that ____________
count the number of empty and full buffers
count the number of empty and full memory spaces
count the number of empty and full queues
none of the mentioned
To ensure difficulties do not arise in the readers – writers problem _______ are given exclusive access to the shared object.
readers
writers
readers and writers
none of the mentioned
Peterson’s solution is restricted to ___ processes that alternate execution between their critical sections and remainder sections
1
2
3
4
The part of program where the shared resource is accessed is called ________________
program
race condition
synchronizing
critical section
When Buffer is empty
Producer can produce
Consumer can consume
Producer can consume
Consumer can produce
When Buffer is full
Producer can produce
Consumer can consume
Producer can consume
Consumer can produce
Multiple processes are permitted to concurrently acquire a reader–writer lock in read mode, but only one process may acquire the lock for ___, as exclusive access is required for _________
reading, readers
reading, writers
writing, writers
writing, readers
At which state the process is waiting to be assigned to a processor?
New
Running
Waiting
Ready
____ memory is placed between the CPU and the main memory.
Virtual memory
ROM
RAM
Cache
