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

Help! Operating System Question! Operating System Question! 1. The ability of on

ID: 648579 • Letter: H

Question

Help!

Operating System Question!

Operating System Question! 1. The ability of one process to spawn a new process is an important capability, but it is not without its dangers. Consider the consequences of allowing a user to run the process in the code above. Assume that fork Q is a system call that spawns a child process. (15 pts.) a. Assuming that a system allowed such a process to run. what would the consequences be? b. Would the controls you propose hinder a process's ability to spawn new processes? c. How would the implementation of the controls you propose affect the design of the system?s process handling mechanism?

Explanation / Answer

a)

According to the code given above, when the code is executed, the call of the method fork() will continuously keep on creating the child processes. So the system gets into continuous process without break.

b)

Yes, the controls hinder a process’s ability to spawn new processes by creating the hierarchy of the process.

c)

This tells us that when a parent processes is created then it can have different child process at the same level.

Or you can create a parent process and under that can create a child process. Now make this child process into a parent process and then to it create a child process.

Thus, by creating the hierarchy of the process can have the controls by getting their process ids. Then depending on the program execution the required process ids are used to execute and making the others process into halt state.

In other way schedule the process execution.

Thus, one would implement the implementation of the controls that affect the design of the system’s process handling mechanism.

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