1,811 views
0 0 votes
Which one is not a valid reason for process termination ?

1) Time limit exceeded

2) memory unavailable

3) Parent termination

4) Child termination

Explain with giving an example of each

3 Answers

2 2 votes

Ans: 4) Child Termination

A process can terminate in one of the following basic ways:

  • by exiting (i.e., the process terminates itself)
  • by being signalled
  • by having no running threads (i.e., the thread count goes to 0 )

In some operating systems, if a parent process dies, then all of its child processes die too.

When a process terminates—no matter why—all of its resources are cleaned up:

  • Any remaining threads are terminated.
  • All file descriptors are closed.
  • All channels and side-channel connections are destroyed.
  • All memory mappings for the process are unmapped. This includes code, data, heap, hardware mappings, and shared memory.
0 0 votes

1.a time limit can be set if we want to terminate a process automatically after some time.

2.a memory unavailable will also lead to process termination.

3.parent termination may lead to cascading termination in some operating systems.

4.child termination will not lead to process termination (the parent).and will continue to execute.[correct answer]

https://en.m.wikipedia.org/wiki/Process_management_(computing)#Process_termination

Position:
Show:

Related questions

4 4 votes
1 1 answer
292
292 views
GO Classes asked Jul 18
292 views
Which of the following statements are correct?The CPU dispatcher determines the policy for which process should be run and when. With cooperative multitasking, it is poss...
3 3 votes
4 4 answers
1.5k
1.5k views
delxbydelt asked Mar 15, 2024
1,540 views
Consider a uniprocessor system with n processes in the ready queue. Round robin scheduling with time quantum x is used for process scheduling. Assume each process require...
2 2 votes
0 0 answers
598
598 views
Raviwarlord asked Nov 18, 2022
598 views
Why do we say that Longest Remaining time first is a starvation free algorithm?Let me walk through my though process, same as LRTF is Shortest Remaining time first and it...
0 0 votes
1 1 answer
2.7k
2.7k views
anupamsworld asked Jun 6, 2022
2,665 views
Lets consider one situation where,OS is scheduling processes(P1,P2,P3...Pn) with Round Robin method and current running process is P1 and next scheduled process in queue ...