Question

In: Computer Science

does a zombie process use CPU time true or false and is it true or false...

does a zombie process use CPU time true or false

and is it true or false that a orphan process will find a new parent and will not use CPU time.

Solutions

Expert Solution

Hey: here is my Answer is given below, to appreciate my work please give Positive Rating............

does a zombie process use CPU time true or false -:

  • NO, the Zombie process doesn't use CPU time.
  • a zombie process or defunct process is a process that has completed execution (via the exit system call) but still has an entry in the process table: it is a process in the "Terminated state".
  • This occurs for the child processes, where the entry is still needed to allow the parent process to read its child's exit status: once the exit status is read via the wait system call, the zombie's entry is removed from the process table and it is said to be "reaped".
  • A child process always first becomes a zombie before being removed from the resource table. In most cases, under normal system operation zombies are immediately waited on by their parent and then reaped by the system – processes that stay zombies for a long time are generally an error and cause a resource leak, but the only resource they occupy is the process table entry – process ID.
  • So, All the memory and resources allocated to a process are deallocated when the process terminates using the exit() system call. But the process’s entry in the process table is still available. This process is now a zombie process.
  • The exit status of the zombie process can be read by the parent process using the wait() system call. After that, the zombie process is removed from the system. Then the process ID and the process table entry of the zombie process can be reused.
  • If the parent process does not use the wait() system call, the zombie process is left in the process table. This creates a resource leak.
  • If the parent process is not running anymore, then the presence of a zombie process indicates an operating system bug. This may not be a serious problem if there are a few zombie processes but under heavier loads, this can create issues for the system such as running out of process table entries.

Is it true or false that a orphan process will find a new parent and will not use CPU time.

  • It is false that a orphan process will find a new parent and will not use CPU time, when the parent of chid process is terminated/ died then this orphaned child process is adopted by
    special init system process: the kernel sets the parent to init.
  • This operation is called re-parenting and occurs automatically. Even though technically the process has the "init" process as its parent, it is still called an orphan process since the process that originally created it no longer exists. In other systems orphaned processes are immediately terminated by the kernel.
  • it still use the resources and CPU time for execution .
  • An orphan process is a process that is still executing, but whose parent has died. When the parent dies, the orphaned child process is adopted by init or systemd (process ID 1).
  • When orphan processes die, they do not remain as zombie processes; instead, they are waited on by init. The result is that a process that is both a zombie and an orphan will be reaped automatically.


thanks..................


Related Solutions

What is the command to view the process? What is a zombie process & What is...
What is the command to view the process? What is a zombie process & What is the command to take care of zombie process?
True or false 1) OS uses multiple queues in process scheduling. At any time instance, the...
True or false 1) OS uses multiple queues in process scheduling. At any time instance, the PCB of a process can only belong to one queue. 2)OS uses the \proc pseudo-file system to store the statistical information of a process. Even if a process is terminated, we can still find the statistical information on of this process from the \proc pseudo-file system. 3) When a process successfully calls an exec*() function to run a program, the executed program will inherit...
is an operation of selecting a process that is to be serviced by the CPU. a....
is an operation of selecting a process that is to be serviced by the CPU. a. Overlaying b. Replacement c. Paging d. Scheduling
A depreciation expense reflects the use of a non-current asset over time Select one: True False...
A depreciation expense reflects the use of a non-current asset over time Select one: True False Which of the following are Investing Activities in a Statement of Cashflows? Select one: a. Purchase of Land b. Repayment of Loan c. Payment of tax due d. All of the above Which of the following are Liabilities? Select one: a. Bank overdraft b. Dividends received c. Prepayments d. Interest paid Which of the following are not Assets? Select one: a. Land b. Machinery...
TRUE Or False. 1.   If fraud is involved, there is no time limit on the assessment...
TRUE Or False. 1.   If fraud is involved, there is no time limit on the assessment of a deficiency by the IRS. ____     2.   A Revenue Ruling is a judicial source of Federal tax law. ____     3.   Bree received a scholarship to be used as follows: tuition $8000; room and board $11,000; and books and laboratory supplies $4,000. Bree is required to include only $12,000 in her gross income. ____     4.   Two-thirds of treble damage payments under the antitrust law...
True or false: The quantity represented by ω0 is a function of time (i.e., is not...
True or false: The quantity represented by ω0 is a function of time (i.e., is not constant). True or false: The quantity represented by ω is a function of time (i.e., is not constant Which of the following equations is not an explicit function of time t, that is, does not involve t as a variable, and is therefore useful when you do not know or do not need the time? θ=θ0+ω0t+(1/2)αt2 ω=ω0+αt ω2=ω02+2α(θ−θ0) In the equation ω=ω0+αt, what does...
True or False The change in enthalpy of a hypotehtical reversible process and the change in...
True or False The change in enthalpy of a hypotehtical reversible process and the change in enthalpy of it's representative actual processes are equal? Entropy production is greater for an irreversible process than a reversible process?
True or False. Indicate whether the statement is true or false. If false, explain in the...
True or False. Indicate whether the statement is true or false. If false, explain in the space provided the statement why it is false, or simply correct the statement. Smooth muscle contraction is regulated by the autonomic nervous system. During exercise, the sympathetic nerves that innervate the smooth muscles of bronchioles and arterioles regulate the contraction of these smooth muscles to increase ventilation and cardiac output. 2. Multiple choice: Choose one best statement. An infant born prematurely has neonatal respiratory...
In an RC circuit the time constant is defined as Select one: True False
In an RC circuit the time constant is defined as Select one: True False
Genetic enhancement is a process that is routinely used in medicine today. True False
Genetic enhancement is a process that is routinely used in medicine today. True False
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT