what are the different ways the Linux can swich from User
Space to Kernel Space & vice-versa ?

Answers were Sorted based on User's Feedback



what are the different ways the Linux can swich from User Space to Kernel Space & vice-versa ?..

Answer / neo

There are 2 situations when Linux can switch from user Space
to Kernel Space:-

1) by doing System calls
2) When interrupt comes (to handle interrupt)

Linux can switch from kernel Space to User space:-
1) process in kernel mode is preempted.
2) After completion of Interrupt handler / System call

Is This Answer Correct ?    20 Yes 1 No

what are the different ways the Linux can swich from User Space to Kernel Space & vice-versa ?..

Answer / softy

There are 2 situations when Linux can switch from user Space
to Kernel Space:-

1) by doing System calls
2) When interrupt comes (to handle interrupt)
3) by executing 128 (0x80 ) instruction or doing sysenter

Linux can switch from kernel Space to User space:-
1) process in kernel mode is preempted.
2) After completion of Interrupt handler / System call
3) performing sysexit sys call

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Linux System Calls Interview Questions

what is stored in /proc ? what is significance of /proc in linux ?

3 Answers   NetApp,


What does exec family return?

1 Answers  


what is iptabe on redhat linux?

3 Answers   CDAC,


What are system calls used for process management in linux?

0 Answers  


if root user forget the password how to change it?

4 Answers   Wipro,






why the kernel panic error was appering?

13 Answers   Air2Web, Allianz,


diff b/w spinlock, seamaphores and mutex and where to use it.

2 Answers   Intel,


What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?

3 Answers   NetApp,


what happens when we do insmod & rmmod in Linux Device Drivers ?

2 Answers  


What are the signals we have in Linux

3 Answers   HCL, NetApp,


What is the use of proc structure?

2 Answers   NetApp,


how to configure sendmail server on red hat linux version 4 and what and all we Require?

3 Answers   Wipro,


Categories