Consider the following statements regarding life time of any normally terminating process in an operating system. (I) The process must be in RUNNING state at least once during its execution. (II) The process must be in RUNNING state at least twice during its execution. (III) The process must be in WAITING state at least once during its execution. (IV) The process must be in READY state at least once during its execution. Which of the above statements are correct?

Consider the following statements regarding life time of any normally terminating process in an operating system. (I) The process must be in RUNNING state at least once during its execution. (II) The process must be in RUNNING state at least twice during its execution. (III) The process must be in WAITING state at least once during its execution. (IV) The process must be in READY state at least once during its execution. Which of the above statements are correct? Correct Answer I only

The correct answer is option 2.

Concept:

Option 1: The process must be in a RUNNING state at least once during its execution.

True, In the running state, the CPU selects the process for execution, and the instructions within the process are performed by any available CPU core. The process has to be in running state at least once during its execution.

Option 2: The process must be in a RUNNING state at least twice during its execution.

False, The process has to be in running state at least once during its execution. If the process has two running states then there is no use visiting a second time in the second running state because it already executed the process execution.

Option 3: The process must be in a WAITING state at least once during its execution.

False, A wait state is a situation in which a computer program or processor is waiting for the completion of some event before resuming activity. A program or process in a wait state is inactive for the duration of the wait state. If a CPU has a limited number of processes with well-formed arrival times then there is no use of waiting states.

Option 4: The process must be in a READY state at least once during its execution.

False, there is no use of a ready state because after a process is created, it enters the running state, which means it gets loaded into the main memory after the CPU selects the process for execution, and the instructions within the process are executed by any available CPU core.

Hence the correct answer is I only.

Related Questions

Study the following information carefully and answer the following questions. Dhawan plans to buy a flat at Shyamla Society. Shyamala Society has placed the following conditions for allotment of flats in its society: Applicant: (I). State domicile certificate must be submitted. (II). Must have done a job of at least 5 years. (III). If needed, he will be ready to pay the entire amount in 5 years. (IV). Should not be the owner or co-owner (if spouse) of the residential facility in that city (V). Should not be below 35 years of age as on 31 December 2016.   In the case of the applicant who fulfils all other criteria except: A) (I) As mentioned above, should be referred to the chairman of the city council. B) (II) As mentioned above, prepared to provide Aadhaar card. To be referred to the vice-chairman of the committee C) (III) As mentioned above, but a freedom fighter or ex-soldier or the first relationship with these should be referred to a member of the committee. The last date for receipt of applications was 31 December 2016. The conditions of 31 December 2016 are to be met. Based on these criteria, decide whether you have to allot the flat in the following case given on 1 January 2017. Dhawan is an industrialist and from another state who established his factory in 2000 and has a state residence certificate. He is ready to pay the full amount in 4 years if necessary. He does not have a house in that city but his wife has a flat. His date of birth is 11 November 1970.
The following are the conditions for selecting list of a suitable candidates to be called for interview after the written test for the recruitment is conducted/ organized for management-level persons of a multi-national company. For providing accounting services and sales the candidates must (a) be holding a graduation in basic science with 65% or above or B. E degree with 55% and above marks (b) have passed the written test with 70% or above marks (c) the age must be in the group 25 to 30 years as on 1/4/18 (d) have experience in an accounting firms for three years and diploma in accounting with 60% or above marks (e) be presently drawing CTC of 6 Lakhs per annum and above In case the applicant who satisfies all other terms above except 1) at (a) above, then be referred as Junior Accountant 2) at (d) & (e) above then be referred as Trainee-Accountant Satisfying all the above with experience of 5 years then be referred as senior-Accountant Satisfying all the above criteria (a-e) with CA/ ICWA / MBA (Finance) then be refereed as manager (Accounts) Read all the above information and answer the following question Shravani has passed H. SC with 72% of marks. She has done diploma in accountancy with 62% of marks. She was working with an organization in the field of accounting in the field of accounting from 4 years and was drawing CTC of 6.5 Lakhs presently. She is 28yrs as on July 2018. She may referred for the position of:
The following are the conditions for selecting list of a suitable candidates to be called for interview after the written test for the recruitment is conducted/ organized for management-level persons of a multi-national company. For providing accounting services and sales the candidate must (a) be holding a graduation in basic science with 65% or above or B.E degree with 55% and above marks (b) have passed the written test with 70% or above marks (c) the age must be in the group 25 to 30 yrs as on 1/4/18 (d) have experience in an accounting firms for three yrs and diploma in accounting with 60% or above marks (e) be presently drawing CTC of 6 Lakhs per annum and above In case the applicant who satisfies all other terms above except 1) at (a) above, then be referred as Junior Accountant 2) at (d) & (e) above then be referred as Trainee-Accountant Satisfying all the above with experience of 5 yrs then be referred as senior-Accountant Satisfying all the above criteria (a-e) with CA/ ICWA/ MBA (Finance) then be refereed as manager (Accounts) Read all the above information and answer the following question: Radha Mohan has done her graduation in physics with 58% of marks. She has passed the written examination with 76% of marks. She is 27 yrs as on June 2018. She has the experience in the accounting company for four years with salary of 7 Lakhs per annum. She also has passed diploma in accounting with 61% of marks. She may be referred for the position of: