Podcast
Questions and Answers
What is the waiting time of each of these processes? (Use FCFS)
What is the waiting time of each of these processes? (Use FCFS)
- P1: 0, P2: 4, P3: 9, P4: 16 (correct)
- P1: 0, P2: 2, P3: 7, P4: 14 (correct)
- P1: 0, P2: 3, P3: 8, P4: 15 (correct)
- P1: 0, P2: 4, P3: 7, P4: 12 (correct)
What is the average waiting time for these processes? (Use FCFS)
What is the average waiting time for these processes? (Use FCFS)
5.75
What is the turnaround time of each of these processes? (Use FCFS)
What is the turnaround time of each of these processes? (Use FCFS)
- P1: 4, P2: 7, P3: 11, P4: 18
- P1: 5, P2: 8, P3: 13, P4: 20
- P1: 4, P2: 7, P3: 12, P4: 19 (correct)
- P1: 4, P2: 8, P3: 12, P4: 19
What is the average turnaround time for these processes? (Use FCFS)
What is the average turnaround time for these processes? (Use FCFS)
What is the waiting time of each of these processes? (Use Round Robin with time quantum = 4)
What is the waiting time of each of these processes? (Use Round Robin with time quantum = 4)
What is the average waiting time for these processes? (Use Round Robin with time quantum = 4)
What is the average waiting time for these processes? (Use Round Robin with time quantum = 4)
What is the turnaround time of each of these processes? (Use Round Robin with time quantum = 4)
What is the turnaround time of each of these processes? (Use Round Robin with time quantum = 4)
What is the average turnaround time for these processes? (Use Round Robin with time quantum = 4)
What is the average turnaround time for these processes? (Use Round Robin with time quantum = 4)
What is the bootstrap program?
What is the bootstrap program?
The memory layout of a process consists of 4 sections, what are these sections and what are the contents of each section?
The memory layout of a process consists of 4 sections, what are these sections and what are the contents of each section?
What are advantages of Multiprocessor Systems?
What are advantages of Multiprocessor Systems?
What is External Fragmentation? What are the solutions to it?
What is External Fragmentation? What are the solutions to it?
Draw the diagram of process states.
Draw the diagram of process states.
What are the four conditions of deadlock?
What are the four conditions of deadlock?
What is the difference between Ordinary pipes and Named pipes?
What is the difference between Ordinary pipes and Named pipes?
What are advantages and disadvantages of the First Come First Served (FCFS) scheduling algorithm?
What are advantages and disadvantages of the First Come First Served (FCFS) scheduling algorithm?
What are the advantages of multithreading?
What are the advantages of multithreading?
What is the direct access memory (DMA)?
What is the direct access memory (DMA)?
Use the first-fit algorithm to place these processes in memory.
Use the first-fit algorithm to place these processes in memory.
Which algorithm makes the most efficient use of memory?
Which algorithm makes the most efficient use of memory?
Consider a computer system with a 32-bit logical address and 4 KB page size. The system supports up to 512 MB of physical memory. How many entries are there in the page table?
Consider a computer system with a 32-bit logical address and 4 KB page size. The system supports up to 512 MB of physical memory. How many entries are there in the page table?
In a multi-programmed system, the process (currently executing by CPU) may have to wait for an I/O operation to complete. In this case, the CPU will do which of the following?
In a multi-programmed system, the process (currently executing by CPU) may have to wait for an I/O operation to complete. In this case, the CPU will do which of the following?
Which of the following operating system structures is removing all non-essential components from the kernel and implementing them as user-level programs that reside in separate address spaces?
Which of the following operating system structures is removing all non-essential components from the kernel and implementing them as user-level programs that reside in separate address spaces?
Which of the following instructions is not privileged?
Which of the following instructions is not privileged?
Deciding which processes (or parts of processes) and data to move into and out of memory is an activity of:
Deciding which processes (or parts of processes) and data to move into and out of memory is an activity of:
Which of the following is a type of computing that delivers storage, computing, and applications as a service across a network?
Which of the following is a type of computing that delivers storage, computing, and applications as a service across a network?
CLI stands for:
CLI stands for:
Virtualization allows operating systems to run as applications within other operating systems.
Virtualization allows operating systems to run as applications within other operating systems.
If a process in the “running” state and an interrupt occurs, then the process will be in the “Waiting” state.
If a process in the “running” state and an interrupt occurs, then the process will be in the “Waiting” state.
Caching is copying information from storage system A to storage system B where B is slower than A.
Caching is copying information from storage system A to storage system B where B is slower than A.
Hard-disk drives are volatile storage devices and faster than the nonvolatile memory devices.
Hard-disk drives are volatile storage devices and faster than the nonvolatile memory devices.
Each device controller type has an operating system device driver to manage it.
Each device controller type has an operating system device driver to manage it.
With DMA, device controller transfers blocks of data from buffer storage directly to main memory without CPU intervention.
With DMA, device controller transfers blocks of data from buffer storage directly to main memory without CPU intervention.
Flashcards
Bootstrap Program
Bootstrap Program
A program that loads the operating system into memory during system startup.
External Fragmentation
External Fragmentation
A memory management technique that allocates memory to processes in contiguous blocks, leaving gaps between them.
Multiprocessor Systems
Multiprocessor Systems
A system that uses multiple processors (CPUs) to execute processes concurrently.
Paging
Paging
Signup and view all the flashcards
Interprocess Communication (IPC)
Interprocess Communication (IPC)
Signup and view all the flashcards
Ordinary Pipe
Ordinary Pipe
Signup and view all the flashcards
Named Pipe
Named Pipe
Signup and view all the flashcards
Direct Memory Access (DMA)
Direct Memory Access (DMA)
Signup and view all the flashcards
First Come First Served (FCFS)
First Come First Served (FCFS)
Signup and view all the flashcards
Shortest Job First (SJF)
Shortest Job First (SJF)
Signup and view all the flashcards
Round Robin Scheduling
Round Robin Scheduling
Signup and view all the flashcards
Turnaround Time
Turnaround Time
Signup and view all the flashcards
Waiting Time
Waiting Time
Signup and view all the flashcards
First-Fit Algorithm
First-Fit Algorithm
Signup and view all the flashcards
Best-Fit Algorithm
Best-Fit Algorithm
Signup and view all the flashcards
Worst-Fit Algorithm
Worst-Fit Algorithm
Signup and view all the flashcards
Virtual Memory
Virtual Memory
Signup and view all the flashcards
Page Table
Page Table
Signup and view all the flashcards
Caching
Caching
Signup and view all the flashcards
Volatile Memory
Volatile Memory
Signup and view all the flashcards
Non-Volatile Memory
Non-Volatile Memory
Signup and view all the flashcards
Device Driver
Device Driver
Signup and view all the flashcards
Layered System
Layered System
Signup and view all the flashcards
Monolithic System
Monolithic System
Signup and view all the flashcards
Hybrid System
Hybrid System
Signup and view all the flashcards
Microkernel System
Microkernel System
Signup and view all the flashcards
Multitasking
Multitasking
Signup and view all the flashcards
Running Process
Running Process
Signup and view all the flashcards
Ready Process
Ready Process
Signup and view all the flashcards
Waiting Process
Waiting Process
Signup and view all the flashcards
Terminated Process
Terminated Process
Signup and view all the flashcards
Study Notes
Operating Systems - Exam Questions
-
Question 1a: Processes (P1, P2, P3, P4) arrive at time 0 with burst times (milliseconds): P1-4, P2-3, P3-5, P4-7. Use FCFS scheduling algorithm to solve for waiting times, average waiting time, turnaround times, and average turnaround time.
-
Question 1b: Processes (P1, P2, P3, P4) arrive at time 0 with burst times (milliseconds): P1-7, P2-6, P3-5, P4-8. Use SJF scheduling algorithm to solve for waiting times, average waiting time, turnaround times, and average turnaround time.
-
Question 1c: Processes (P1, P2, P3, P4) arrive at time 0 with burst times (milliseconds): P1-10, P2-6, P3-4, P4-8. Use Round Robin scheduling algorithm (time quantum = 4) to solve for waiting times, average waiting time, turnaround times, and average turnaround time.
Question 2 (32 Marks)
-
a. Bootstrap program: A program that initializes a computer by loading the operating system into memory.
-
b. Memory layout of a process: Consists of 4 sections - Text, Data, Stack, Heap.
-
Text section - Instructions of the program.
-
Data section - Static variables and initialized global data.
-
Stack section - Dynamic variables, function calls, and return addresses.
-
Heap section - Dynamic data allocated during runtime.
-
c. Advantages of Multiprocessor Systems: Increased throughput, reliability, cost-effectiveness, responsiveness, and resource sharing.
-
d. External Fragmentation: The memory is fragmented into small, unusable pieces; solutions include compaction (moving allocated memory together) and segmentation (memory split into fixed-size chunks).
-
e. Process States Diagram: A diagram visually representing the various stages a process undergoes (e.g., new, ready, running, waiting, terminated).
-
f. Deadlock conditions: Mutual exclusion, hold and wait, no preemption, circular wait.
-
g. Ordinary pipes vs. Named pipes: Ordinary pipes are temporary and unidirectional, named pipes have a persistent name and can be bidirectional.
-
h. First Come First Served (FCFS) scheduling algorithm: Advantages - Simple to understand and implement, Disadvantages - Can lead to long wait times for shorter processes, average waiting time can be high especially during periods with long and short processes.
-
i. Multithreading advantages: Increased responsiveness, resource sharing, efficient context switching, simplified programming in concurrent cases.
-
j. Direct Memory Access (DMA): A hardware mechanism that allows a device to directly access main memory without involving the CPU.
Question 3 (16 Marks)
-
a. Memory partitioning (five partitions): Given the various sizes of partitions and the size of processes, determine the best fit, first fit and worst fit approaches.
-
b. Page table entries: Calculate the page table entries given the 32-bit logical address, page size (4KB), and supported physical memory (512 MB).
Question 4 (12 Marks)
- a. Choose the correct answer for the provided multiple choice questions.
- I/O Operations in Multiprogramming, Operating System structures and instruction types, and the functionality & processes of memory management.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.