|
|||||||
| Programming, Coding, (Web)Design Discuss all your programming or design needs with likeminded people. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
DriverHeaven Lover
Join Date: May 2003
Posts: 200
Rep Power: 0 ![]() |
some questions about kernel and user mode!!!
Let say I have a function write_block(...) which must be run in supervisor (kernel) mode. What type of differences will I see when a user process versus a supervisor process needs to invoke write_block? Consider both how a programmer might invoke write_block and any differences in performance. Thx
|
|
|
|
|
|
|
|
DriverHeaven Lover
Join Date: May 2003
Posts: 200
Rep Power: 0 ![]() |
anyone???
|
|
|
|
|
|
|
|
DriverHeaven Lover
Join Date: May 2003
Posts: 200
Rep Power: 0 ![]() |
some question about kernel and user mode!
Let say I have a function write_block(...) which must be run in supervisor (kernel) mode. What type of differences will I see when a user process versus a supervisor process needs to invoke write_block? Consider both how a programmer might invoke write_block and any differences in performance. Thx
|
|
|
|
|
|
#4 |
|
Unbiased.
Join Date: Jun 2002
Posts: 4,812
Rep Power: 0 ![]() |
You don't need two different threads, merged. And sorry to say, but this above my head, otherwise I would have answered. There are some windows gurus on here, just wait and hopefully one can help you with your question.
__________________
[img][/img] [color=White]Peace be with you, Joe.[/color] Driverheaven Staff Member (Supermoderator) |
|
|
|
|
|
#5 |
|
Custom User Title
|
It's been a while since I messed with this stuff, but I don't think it would be a major performance problem. For example, they moved the graphics subsystem to kernel mode in Windows to improve performance. And if the function requires supervisor privileges anyway, there's no way around it. It probably would run a bit faster if it was being called from a kernel mode process, however.
|
|
|
|
|
|
|
|
DriverHeaven Lover
Join Date: May 2003
Posts: 200
Rep Power: 0 ![]() |
kernel vs user processes!
Does a user process or supervisor (kernel ) process have higher performance? also how are they differeces in performance? thx.
|
|
|
|
|
|
#7 |
|
Yarr... I be blind!
Join Date: May 2002
Location: Calgary, Canada
Posts: 3,191
Rep Power: 80 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Merged threads, this is the third thread you started regarding the same subject, please keep the discussion in the one thread!
__________________
|
|
|
|
|
|
#8 | |
|
A Legend in Underwear
Join Date: May 2002
Location: Unknown
Posts: 5,255
Rep Power: 0 ![]() |
Re: kernel vs user processes!
Quote:
Someone wrote a kernel-space HTTP server for linux, but a userspace FTP server called vsftpd was still able to send data much faster. Different protocols I know - but speed it gained by optimising the code, not where it runs. Running in kernel space, the process has full access to everything and can pull the entire system down. Running in user space, the process has controllable access and it's much harder (but still possible) to pull the system down. Basically unless you're talking directly to hardware (ie a driver) you have no reason to be writing a kernel program
__________________
Gentoo Linux - Developer (baselayout) Read my blog "I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." Stephen Roberts |
|
|
|
|
![]() |
| Thread Tools | |
|
|