









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Very important Operating system questions and answers
Typology: Study notes
1 / 16
This page cannot be seen from the preview
Don't miss anything!










1.1 What are the operating system goals?
between conflicting requests for efficient and fair resource use, controls program execution to prevent errors and improper use of the computer, and serves as a resource allocator. 1.5 What are the differences between a trap and an interrupt? 1.6 Why is Direct Memory Access (DMA) used?
1.9 What is the difference between kernel and user mode?
When the word is not found in the cache or RAM and is on disk: a. Time to access disk after RAM miss: 10 msec b. Probability of this case: (1 - cache hit rate) * (1 - main memory hit rate) = 0.05 * 0.01 = 0. c. Average time for this case: 10 msec * 0.0005 = 5 usec Now we can calculate the overall average time to access a word: Average time = (cache hit rate * time for case 1) + (probability of case 2 * time for case 2) + (probability of case 3 * time for case 3) Average time = (0.95 * 1 nsec) + (0.0495 * 10 nsec) + (0.0005 * 10 msec) Average time = 1.00045 nsec or approximately 1 nsec (rounded to the nearest whole number) Therefore, the average time to access a word in this computer system is approximately 1 nanosecond.
3.1 Describe how the process takes place in the CPU scheduling decisions.
4.2 Explain the difference between logical addresses, physical address. 4.3 Describe the usage of Memory-Management Unit (MMU) The Memory-Management Unit (MMU) maps logical addresses to physical addresses at runtime, ensuring that user programs do not directly access physical memory addresses. 4.4 Given five memory partitions of 100 KB, 500 KB, 200 KB, 300 KB, and 600 KB (in order), how would each of the first-fit, best-fit, and worst-fit algorithms place processes of 212 KB, 417 KB, 112 KB, and 426 KB (in order)? Which algorithm makes the most efficient use of memory? First-fit: 212K is put in 500K partition 417K is put in 600K partition. 112K is put in 288K partition (new partition 288K = 500K - 212K) 426K must wait. يكفي أنه يستوعب العملية.. أول جزء من الذاكرة اقابله
Best-fit: 212K is put in 300K partition 417K is put in 500K partition. 112K is put in 200K partition. 426K is put in 600K partition. Worst-fit: 212K is put in 600K partition. 417K is put in 500K partition. 112K is put in 388K partition (new partition 388K = 600K - 212K) 426K must wait. In this example, Best-fit turns out to be the best. 4.5 Explain the difference between external and internal fragmentation.
Paging is a memory management technique that involves dividing physical and logical memory into fixed-sized blocks called frames and pages respectively. This technique avoids external fragmentation and problems with varying sized memory chunks. To run a program, free frames are located, and the program is loaded. A page table is set up to translate logical to physical addresses. The backing store is also split into pages. However, paging still results in internal fragmentation.
افهمها صح https://youtu. be/wzWIoPlIT 1Y معذرة ً كل شوية عارف لكن حقًا أخوك يحتاج الدعاء سونا من صالحال تن ..دعائكم