2 votes 2 votes On a system with N CPU, what is the maximum number of processes that can be in running state ? A) N process B)Depend on the processes in ready state C) Can't say Operating System operating-system process + – Shivam Chauhan asked Oct 19, 2017 Shivam Chauhan 761 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 1 votes 1 votes Answer is A Since they have asked the maximum number of process, assumed that you hav infinity number of process in ready state , and out of these you need to get N such that n process can run on N process. Dexter answered Oct 19, 2017 • selected Nov 19, 2017 by Shivam Chauhan Dexter comment Share Follow See all 5 Comments See all 5 5 Comments reply Shivam Chauhan commented Oct 19, 2017 reply Follow Share I am actually confused with option B) Depend on the processes in ready state If B) option is not given then yes A) would be the answer but B) option 0 votes 0 votes Shivam Chauhan commented Oct 20, 2017 reply Follow Share @Habibkhan @Shubhanshu What do you think? If option B was not given then yes answer would have A) because we can assume number of processes in ready state >= N but with option, B) given there are two choices 1) When number of processes in ready state < N , then all can be assigned to CPU 2) When number of processes in ready state >= N , then only N can be assigned to CPU Therefore I think Option B) is true 0 votes 0 votes Habibkhan commented Oct 20, 2017 reply Follow Share Actually the thing is it is asking about "maximum number of processes that can be in running state with N processors" . Ur point is also true that if number of processes in ready state is less than N , then yes all of them can go to running state .. But then it will be less than N . But we have to possibility of how the maximum value can be achieved . Hence we should assume considering wht is being asked in the question . If the question were : The number of processes that can be in running state In that case ur possibilities should be taken into account . As maximum possible number of processes is being asked here , we need not bother . 2 votes 2 votes Shivam Chauhan commented Oct 20, 2017 reply Follow Share Okk ,that clears my doubt. 1 votes 1 votes Shubhanshu commented Oct 20, 2017 reply Follow Share What happen if we have kernel level threads/processesas they can run on two different processor.??? 0 votes 0 votes Please log in or register to add a comment.