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

How to get microseconds of system time from Redhat Linux 4.0

2 Answers  


what is iptabe on redhat linux?

3 Answers   CDAC,


1. Where the History file can be located? 2. How will you harden the server? 3. Diff between Raid 1 and Raid 5? 4. What is the largest disk size can be used in LVM? 5. How will you remove a PV from lvm without any data loss? 6. What is the diff between ext3 and ext2 File system? 7. How we can use resize2fs, what is the purpose? 8. What is the purpose of LVM? Why it is used? 9. If the FS is in read-only mode, so we cannot create any file. How will you fix it? 10. How to create swap partition after OS installation? 11. What is the diff between ssh and telnet? 12. How to find out the dependency required for a package?

3 Answers   IBM,


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,


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

3 Answers   NetApp,






What are system calls used for process management in linux?

0 Answers  


How to create secured appeche web sever ?

1 Answers   HCL,


how to configure ftp server on redhat linux?

9 Answers   Infosys,


what is mean by raid and what are all raids available even in software and hardware?

5 Answers   Satyam,


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

2 Answers   NetApp,


how to create samba server in fedora linux 9 ?

2 Answers   Accenture,


how to configure http server on red hat linux4.0?

5 Answers   IBM,


Categories