In Priority Scheduling, how is the priority of a process typically determined?
By the size of the process
By the process age
By the expected time of execution
By the user's input
What occurs during context switching?
The system switches from a user mode to kernel mode
Processes are deleted from memory
CPU registers and state are saved and restored
A process is moved to the ready state
What is the main purpose of a Process Control Block (PCB)?
To facilitate process scheduling.
To track tax information of processes.
To store only the process code.
To manage system hardware.
Which of the following models exemplifies inter-process communication through shared memory?
Mailboxes
Direct shared memory access.
Semaphores
Pipes
Which of the following best defines a 'process' in an operating system?
A sequence of commands.
A program in execution.
A collection of data.
A file stored on disk.
What is the primary purpose of Memory Management in an operating system?
To manage process scheduling
To handle input/output operations
To optimize CPU usage
To allocate and manage RAM
Which CPU scheduling algorithm can lead to the 'convoy effect', causing longer average waiting times?
Priority Scheduling
First-Come, First-Served (FCFS)
Shortest Job Next (SJN)
Round Robin (RR)
Which of the following is a characteristic of user-level threads?
Can take advantage of multiple processors
Managed by the operating system kernel
Require system calls for scheduling
Allow for faster context switching
What is the main disadvantage of the FIFO page replacement algorithm?
It is complex to implement in hardware
It can lead to high page faults with frequently used pages
It may lead to thrashing due to frequent page changes
It requires making multiple passes through the memory
In which scenario is a process created?
All of the above
When the system boots up
When a program is invoked
When a user logs into a system