NEW
Font size
WorksheetsOperating System - Process
Total questions: 40
Worksheet time: 20mins
Where is the list of processes that are prepared to be executed and waiting?
Job queue
Ready queue
Execution queue
Process queue
Where are placed the list of processes that are prepared to be executed and waiting?
Job queue
Ready queue
Execution queue
Process queue
What type of scheduling is round-robin scheduling?
Linear data scheduling
Non-linear data scheduling
Preemptive scheduling
Non-preemptive scheduling
Which conditions must be satisfied to solve a critical section problem?
Bounded Waiting
Progress
Mutual Exclusion
All of the above
Which of the following scheduling algorithms is preemptive scheduling?
FCFS Scheduling
SJF Scheduling
Network Scheduling
SRTF Scheduling
Which of the following "semaphore" can take the non-negative integer values?
Binary Semaphore
Counting Semaphore
Real Semaphore
All of the these
In which directory the local user profile settings are stored by default in windows 2000?
C: \ USERS
C: \ NETLOGON
C: \ WIN NTUSER.DAT
C: \ Documents and settings
Which of the following scheduling algorithms is non-preemptive scheduling?
SJF scheduling
Round-Robin scheduling
SRTF scheduling
None of these
Which of the following scheduling reduces process flow time?
FCFS
LIFO
SJF
All of the these
Which of the following method is used to prevent threads or processes from accessing a single resource?
PCB
Semaphore
Job Scheduler
Non-Contiguous Memory Allocation
Which of the following mechanisms is a locking mechanism?
Semaphore
PCB
Mutex
Binary Semaphore
If a process fails, most operating system write the error information to a ______
new file
another running process
log file
none of the mentioned
Which one of the following is not a real-time operating system?
RTLinux
Palm OS
QNX
VxWorks
In a timeshare operating system, when the time slot assigned to a process is completed, the process switches from the current state to?
Suspended state
Terminated state
Ready state
Blocked state
When a process is in a “Blocked” state waiting for some I/O service. When the service is completed, it goes to the __________
Terminated state
Suspended state
Running state
Ready state
The portion of the process scheduler in an operating system that dispatches processes is concerned with _______
assigning ready processes to waiting queue
assigning running processes to blocked queue
assigning ready processes to CPU
all of the mentioned
Which of the following is a characteristic of a preemptive multitasking operating system?
Processes are executed in a strict order
Processes can be interrupted and resumed
Only one process can run at a time
Processes must complete before another can start
What is the main purpose of a process control block (PCB)?
To manage memory allocation
To store process state information
To handle I/O operations
To schedule processes
Which of the following is an advantage of using a priority scheduling algorithm?
It ensures fairness among processes
It minimizes average waiting time
It is easy to implement
It prevents starvation of low-priority processes
Which of the following is a disadvantage of using a round-robin scheduling algorithm?
It can lead to high turnaround time
It is fair to all processes
It is easy to implement
It minimizes waiting time
What is the primary role of a job scheduler in an operating system?
To manage CPU scheduling
To allocate memory to processes
To load processes into memory for execution
To handle I/O operations
Which of the following statements is true regarding the FIFO scheduling algorithm?
It is a preemptive scheduling algorithm
It can lead to the convoy effect
It is optimal for minimizing average waiting time
It is suitable for real-time systems
What is the main function of a process scheduler in an operating system?
To allocate CPU time to processes
To manage memory allocation
To handle I/O operations
To terminate processes
Which of the following is a disadvantage of priority scheduling?
It can lead to starvation of low-priority processes
It is difficult to implement
It requires more CPU time
It is not suitable for batch systems
In a multi-threaded environment, what is the purpose of a mutex?
To allow multiple threads to access a resource simultaneously
To prevent multiple threads from accessing a resource at the same time
To manage memory allocation for threads
To schedule threads for execution
What is the main advantage of using a preemptive multitasking operating system?
It allows for better responsiveness to user inputs
It requires less memory
It simplifies process management
It eliminates the need for context switching
Which of the following is a disadvantage of using a mutex in a multi-threaded environment?
It can lead to deadlock situations
It allows multiple threads to access resources simultaneously
It is faster than using semaphores
It simplifies thread management
In a priority scheduling algorithm, what happens when two processes have the same priority?
They are executed in the order they arrive
One process is always executed first
They are both terminated
They are executed simultaneously
What is the role of a job queue in an operating system?
To hold processes that are currently executing
To store processes that are ready to run
To maintain processes that are waiting for I/O
To keep track of all processes in the system
Which of the following is a common method for inter-process communication?
Shared memory
Mutex
Semaphore
All of the above
What happens to a process in a 'Suspended' state?
It is waiting for I/O operations to complete
It is temporarily removed from the ready queue
It is actively using CPU resources
It has completed its execution
What is the role of a process in an operating system?
To execute user commands
To manage system resources
To perform background tasks
To handle user input
Which of the following states indicates that a process is currently executing on the CPU?
Ready state
Running state
Blocked state
Terminated state
What is the main disadvantage of non-preemptive scheduling?
It can lead to starvation of processes
It is more complex to implement
It requires more CPU time
It is less efficient than preemptive scheduling
What is the main purpose of a semaphore in an operating system?
To manage memory allocation
To synchronize access to shared resources
To schedule processes for execution
To handle I/O operations
Which of the following states indicates that a process is currently executing on the CPU?
Ready state
Running state
Blocked state
Terminated state
In a multi-threaded environment, what is the primary function of a mutex?
To allow multiple threads to run simultaneously
To prevent race conditions
To manage memory allocation
To schedule threads for execution
What is the function of a context switch in an operating system?
To allocate memory to processes
To save the state of a currently running process
To terminate a process
To schedule a new process for execution
Which of the following is a characteristic of a non-preemptive scheduling algorithm?
Processes can be interrupted at any time
Once a process starts executing, it cannot be stopped until it finishes
It allows for better responsiveness
It is more complex to implement
What is the primary purpose of a ready queue in an operating system?
To hold processes that are currently executing
To store processes that are waiting for I/O
To maintain processes that are ready to run
To track terminated processes
