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

if one of the critical section code (linked list) is under ISR & another one in kernel thread ? How you will synchronize for this critical section code ?

4 Answers   NetApp,


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

2 Answers   Intel,


What are the signals we have in Linux

3 Answers   HCL, NetApp,


what is segmentation fault?

11 Answers   AdTel, NetApp,


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

2 Answers   NetApp,


what are the backup utilites on red hat linux 4.0?

4 Answers   Wipro,


what is stored at /lib/modules ?

2 Answers   NetApp,


what is bus trap.

1 Answers   NetApp,


what are different ways the context switch happens from user to kernel space or vice-versa ?

1 Answers   Alcatel,


what kind of information the linux driver modules (.ko ) files has ?

2 Answers   NetApp,


what is sudo on linux?

3 Answers   IBM,


what is nis server

13 Answers  


Categories