57 57 votes A user level process in Unix traps the signal sent on a Ctrl-C input, and has a signal handling routine that saves appropriate files before terminating the process. When a Ctrl-C input is given to this process, what is the mode in which the signal handling routine executes? User mode Kernel mode Superuser mode Privileged mode Operating System gateit-2005 operating-system os-protection normal ugcnetcse-june2012-paper3 + – Ishrat Jahan 18.4k views answer comment Share Follow Print See all 10 Comments 10 10 Comments reply Show 7 previous comments Surajit commented Jan 24, 2018 reply Follow flag signals may be handled by two possible handlers,default or if user defined overriding default one.Here which is handling the signal?default or user defined? 0 0 replyShare Akash Papnai commented Nov 27, 2019 reply Follow flag I think this question could be done by option elimination method: Since b and d are the same hence they both cannot be the answer as multiple options not allowed. Now, superuser mode is a mode that requires an administrator to do certain tasks. Now think of a situation when you are using a computer in guest mode. Now you have written an infinite loop program and running in cmd. Now to stop cmd you will press ctrl+c and immediately the program stops without asking any permission. Now, this means CPU does not ask you for admin permission to do ctrl+c. This means the task can be done without going superuser mode. Now, you have only one option left. Hence, A will be the answer. Please correct if I'm wrong. 2 2 replyShare Abhineet Singh commented Dec 7, 2020 i edited by Abhineet Singh Dec 9, 2020 reply Follow flag is this in syllabus? 2 2 replyShare Please log in or register to add a comment.
60 60 votes When an user send an input to the process it can not be in privileged mode as it is coming from an user so option D , Privileged mode can not be possible here .. Now see , kernel mode = Privileged mode That means both option B and option D are equal. As option D can not be possible , option B also false. There is nothing called superuser mode so option C is clearly wrong . Only option A is left , when an user input come like ' ctrl+c' the signal handling routine executes in user mode only as a user level process in UNIX traps the signal. Hence option A is correct answer. Bikram answered Aug 29, 2017 • edited Aug 29, 2017 by Bikram Bikram comment Share Follow See all 8 Comments 8 8 Comments reply Show 5 previous comments Bikram commented Sep 19, 2019 reply Follow flag @Krithiga2101 https://gateoverflow.in/3764/gate2005-it-19-ugcnet-june2012-iii-57?show=148151#c148151 0 0 replyShare Bhupendra commented Oct 3, 2019 reply Follow flag superuser mode --- Sudo command Sudo (superuser do) is a utility for UNIX- and Linux-based systems that provides an efficient way to give specific users permission to use specific system commands at the root (most powerful) level of the system 0 0 replyShare `JEET commented Oct 27, 2019 reply Follow flag @BikramIn Linux we write sudo...something. Which means user mode, right? 0 0 replyShare Please log in or register to add a comment.
59 59 votes This is what the Galvin text has to say. Usually, there are two types of signal handlers: Kernel Level and user level. Now the kernel level is the default one. But if we look at the wordings of the question in details : A user level process in Unix traps the signal sent on a Ctrl-C input, and has a signal handling routine that saves appropriate files before terminating the process. It clearly means that the signal handling routine is a part of the user-level process and hence it shall run in user mode. Ans: (A) USER MODE HitechGa answered Jun 10, 2021 HitechGa comment Share Follow See all 2 Comments 2 2 Comments reply KartikGawande commented Nov 13, 2022 reply Follow flag This shd be the best ans. 0 0 replyShare goku4199 commented Oct 15, 2025 reply Follow flag We should mark it as best answer 0 0 replyShare Please log in or register to add a comment.
9 9 votes http://computernetsolved.blogspot.in/2015/05/q57paper-3-j-12-user-level-process-in.html resilientknight answered Sep 1, 2016 resilientknight comment Share Follow See 1 comment 1 1 comment reply sushmita commented Dec 20, 2018 reply Follow flag according to this link it should be kernel mode right? 0 0 replyShare Please log in or register to add a comment.
3 3 votes Answer: A Rajarshi Sarkar answered Apr 10, 2015 Rajarshi Sarkar comment Share Follow See all 3 Comments 3 3 Comments reply S Ram commented Jan 4, 2017 reply Follow flag what is the difference between kernel mode and privledge mode... ?? why only A is answer not C? 1 1 replyShare akb1115 commented Aug 4, 2017 reply Follow flag Privilege mode and kernel mode both are the same thing so the answer can be A or C 1 1 replyShare Bikram commented Aug 29, 2017 reply Follow flag @S Ram Kernel mode == Privileged mode so option B == option D , when an user send a request it can not be in privileged mode so both option B and D are wrong .. there is nothing called super user mode so option C is wrong clearly .. we only left with option A , and that is correct option . 5 5 replyShare Please log in or register to add a comment.
2 2 votes Answer = Kernel mode. Explanation. Hardware interrupts (also called external/asynchronous interrupts), are ones in which the notification originates from a hardware device such as a keyboard, mouse , etc. The most common way of sending signals to processes is using the keyboard: • Ctrl-C: Causes the system to send an INT signal (SIGINT) to the running process. • Ctrl-Z: causes the system to send a TSTP signal (SIGTSTP) to the running process. The kernel handles signals in the context of the process that receives them, so a process must run to handle signals. Sukhbir Singh answered Sep 23, 2019 Sukhbir Singh comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote The question says "signal handling routine that saves appropriate files BEFORE TERMINATING THE PROCESS" . This means we are still in user mode. So answer is A. ayush.5 answered Oct 27, 2019 ayush.5 comment Share Follow 0 reply Please log in or register to add a comment.