Let's assume a condition where ram is 256 MB and the program size is more than 256 MB
in that case, CPU has to wait for I/O to load the remaining part of the program..in this case
CPU utilization is much poorer.
So adding gives benefit only when your CPU is fast enough to take advantage like if a process waiting for I/O
it can put the current process in the run queue and take another process from the ready queue.
This way a better CPU utilization can be achieved.
So by adding ram we can load more programs while waiting for I/O . CPU utilisation will be better.
here by adding 2GB ram we can load 2048/256 = 8 new process into ram at the same time.
2. if cpu have to execute the cpu bound process that wait for I/O cpu will be idle most of the time while
waiting for I/O to be done..this way CPU utilization will be poorer as compare to earlier.
Answer:
1. Generate a random number
2. Ask the user for a guess.
3. Compare the user's answer to the correct number.
4. Give the user a hint as to whether their guess is too high or too
Explanation:
Leave a like and brainist if this helped
Answer:
For I/O-bound we require voluntary context switches.
For CPU-bound we require non-voluntary context switches.
Explanation:
A voluntary context switches occurs when process has given up control of the CPU because it requires a resource that is currently unavailable(such as blocking for I/O). It happen frequently in normal system operation. Voluntary context switching initiated with a call to the sleep() routine.
A non-voluntary context switches occurs when the CPU has taken away from a process, such as when it's time slice has expired or it has been preempted by a high-priority process. It is forced by direct invocation of the low-level context-switching mechanism embodied in the mi_switch() and setrunnable() routines.
Answer:
HTML
Explanation:
HTML stands for <em>"Hypertext Markup Language." </em>It allows the creation of electronic documents which use <em>semantics</em> to indicate a particular text. The different HTML elements are being separated by<em> "angle brackets" </em>in order to make up a tag. These tags are not visible, but they make it possible for the browser's page to be interpreted.