Lovely Professional University: Operating System
Lovely Professional University: Operating System
Lovely Professional University: Operating System
UNIVERSITY
OPERATING SYSTEM
CSE316
SUBMITTED TO: - Miss Preet Pal
SECTION: - b1801
Student’s Signature:
Inder Bagga
1). Q1 How does a system detect thrashing? Once it detect
thrashing, what can the system do to eliminate this problem?
Sol: In simple words, thrashing is a situation where whenever a process needs to run, it swaps out
some other processes working set to disk. This happens when all the processes working set sizes
sum to larger than the amount of physical memory available in the system.
Thrashing can be detected by the system when the CPU utilization starts decreasing and the
number of page faults increases considerably.
Solution:2.
Ans3:
With a single copy, several concurrent updates to a file may result in user obtaining incorrect
information, and the file being left in an incorrect state. With multiple copies, there is storage
waste and the various copies may not be consistent with respect to each other.
Ans.4:
Ans5:
Segmentation and paging are often combined in order to improve upon each other. Segmented
paging is helpful when the page table becomes very large. Paged segmentation handles the case
of having very long segments that require a lot of time for allocation. By paging the segments,
we reduce wasted memory due to external fragmentation as well as simplify the allocation.
Ans:6:
B. Randomly: A movie player that allows user to start playing movie at random
locations of the file.