Assignment-1 For All
Assignment-1 For All
Que.1: Explain how process control block (PCB) information is managed during a fork()
operation and what changes occur in the parent and child processes’ PCBs after fork() is called.
Que.3: A disk has 200 tracks, numbered 0 to 199. The disk head is currently positioned at track
50, and the pending requests for disk access are:
95, 180, 34, 119, 11, 123, 62, 64
Perform disk scheduling simulations using the following algorithms:
-FCFS (First-Come, First-Served)
-SSTF (Shortest Seek Time First)
-SCAN (Elevator Algorithm)
-C-SCAN (Circular SCAN).
1. Calculate and compare the total head movement (number of tracks traversed) for each
algorithm.
2. Determine which algorithm minimizes the total head movement in this scenario and justify
why.
Que.4: Define a thread and explain its key characteristics. How does it differ from a process in
terms of memory usage and execution? Also, Compare and contrast user-level threads and
kernel-level threads. What are the advantages and disadvantages of each?
Que.5: Describe the basic idea behind paging as a memory management scheme and how it
addresses the issues of memory fragmentation. Also, explain the structure of a page table in
the paging system. How does it map virtual addresses to physical addresses?