COMP 3300 operating systems midterm study guide Questions AND Correct
Answers
How can CPU scheduling algorithms be evaluated? - ✔✔Deterministic Modeling
- Uses predefined workloads to analyze performance.
Queuing Models - Uses mathematical models to evaluate scheduling behavior.
Simulations - Uses software simulations to analyze performance under different
scenarios.
How do client-server systems communicate? - ✔✔Using sockets and remote
procedure calls (RPCs).
How do threads differ from processes? - ✔✔Threads share the same memory
space within a process.
Processes have separate memory spaces.
Creating a thread is faster than creating a process.
Threads communicate via shared memory, while processes use Interprocess
Communication (IPC).
How does First-Come, First-Served (FCFS) scheduling work? - ✔✔The process
that arrives first gets the CPU first (non-preemptive).
How does Linux represent threads? - ✔✔Linux treats threads as lightweight
processes using clone() system calls.
How does message-passing IPC differ from shared-memory IPC? - ✔✔Message
Passing: Processes exchange data via system calls using the OS as an
intermediary.
, Shared Memory: Processes communicate by directly reading/writing to a shared
memory segment.
How does Multilevel Queue Scheduling work? - ✔✔Processes are divided into
multiple queues based on priority, with different scheduling algorithms for each
queue.
How does Priority Scheduling work? - ✔✔Each process has a priority; the
highest priority process gets the CPU.
How does Round Robin (RR) scheduling work? - ✔✔Each process gets a fixed
time slice (quantum) before moving back to the ready queue.
How does Shortest Job Next (SJN) work? - ✔✔The process with the shortest CPU
burst is scheduled next.
How does Windows represent threads? - ✔✔Windows uses kernel-level
threads, each managed by the OS scheduler.
In shared-memory IPC, where do processes communicate?
Through system calls
Through the file system
By accessing a common memory segment
Through the CPU registers - ✔✔Correct Answer: By accessing a common
memory segment
Answers
How can CPU scheduling algorithms be evaluated? - ✔✔Deterministic Modeling
- Uses predefined workloads to analyze performance.
Queuing Models - Uses mathematical models to evaluate scheduling behavior.
Simulations - Uses software simulations to analyze performance under different
scenarios.
How do client-server systems communicate? - ✔✔Using sockets and remote
procedure calls (RPCs).
How do threads differ from processes? - ✔✔Threads share the same memory
space within a process.
Processes have separate memory spaces.
Creating a thread is faster than creating a process.
Threads communicate via shared memory, while processes use Interprocess
Communication (IPC).
How does First-Come, First-Served (FCFS) scheduling work? - ✔✔The process
that arrives first gets the CPU first (non-preemptive).
How does Linux represent threads? - ✔✔Linux treats threads as lightweight
processes using clone() system calls.
How does message-passing IPC differ from shared-memory IPC? - ✔✔Message
Passing: Processes exchange data via system calls using the OS as an
intermediary.
, Shared Memory: Processes communicate by directly reading/writing to a shared
memory segment.
How does Multilevel Queue Scheduling work? - ✔✔Processes are divided into
multiple queues based on priority, with different scheduling algorithms for each
queue.
How does Priority Scheduling work? - ✔✔Each process has a priority; the
highest priority process gets the CPU.
How does Round Robin (RR) scheduling work? - ✔✔Each process gets a fixed
time slice (quantum) before moving back to the ready queue.
How does Shortest Job Next (SJN) work? - ✔✔The process with the shortest CPU
burst is scheduled next.
How does Windows represent threads? - ✔✔Windows uses kernel-level
threads, each managed by the OS scheduler.
In shared-memory IPC, where do processes communicate?
Through system calls
Through the file system
By accessing a common memory segment
Through the CPU registers - ✔✔Correct Answer: By accessing a common
memory segment