linux context switching
From: ¹ßµü¼¼¿ì±â (sslim_at_core.kaist.ac.kr)
Date: 02/09/04
- Previous message: Manoj: "Getting hostname from /proc/dev/tcp"
- Next in thread: Kasper Dupont: "Re: linux context switching"
- Reply: Kasper Dupont: "Re: linux context switching"
- Reply: Catalin Marinas: "Re: linux context switching"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 9 Feb 2004 14:14:23 +0900
In linux, is there kernel context?
Assume following sistuation,
1. a user process is having CPU
2. the process calls systems calls such as ioctl()
3. the process is excuted in a kernel mode, at this momnet is there context
switching?
4. H/W interrupt occurs
5. save contexts of the process in a kernel mode
6. interrupt handler is excuted
7. the handler gets finished
8. RET is called
9. at this moment, without preemption, the interrupted process in a kernel
mode will be selected again.
If the steps I mentioned above is right, I think there is no pure kernel
context to be saved.
All contexts have corresponding user processes. Am I right?
Who owns Task number 0? kernel?
I have analyzed source codes. But it's very hard to understand them and
figure out my questions.
Your sincere advices will be appreciated :-)
- Previous message: Manoj: "Getting hostname from /proc/dev/tcp"
- Next in thread: Kasper Dupont: "Re: linux context switching"
- Reply: Kasper Dupont: "Re: linux context switching"
- Reply: Catalin Marinas: "Re: linux context switching"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|