Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question about Operating Systems A computer has 4 GB of RAM of which the operati

ID: 3845104 • Letter: Q

Question

Question about Operating Systems

A computer has 4 GB of RAM of which the operating system occupies 512 MB. The processes are all 256 MB (for simplicity) and have the same characteristics. If the goal is 99% CPU utilization, what is the maximum I/O wait that can be tolerated? Use the simple multiprogramming model we presented in the slides to solve this problem. You can assume that the impact of context switches is negligible. List one advantage each for implementing threads in user space and in kernel space. For each implementation, also list a disadvantage.

Explanation / Answer

8). All processes is required to fit in memory, suppose there are N process then altogether the os will take 512+256 N. MB. As there is single room for 4096 MB. It is needed 512+256 N <= 4096. Dividing both side by 256 this will give 2+ N <=16.

9)User space thread implementation:

Advantage- the user space thread package could be implemented on an os which do not support thread. All os is needed to fall into this category.

Disadvantage- there is a problem on blocking system call

Kernel space thread--

Advantage- the thread operation can be implemented in the is and kernel scheduler.

Disadvantage- the kernel space thread are fund to be slow and in efficient.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote