Go with your first idea. (I mean that!)
Use a user-space process. Have it request kernel services when necessary.
"The kernel" is an extremely special-purpose environment. It exists only to support userland processes (privileged or not).
For example: "the kernel is not 'signaled.'" Rather, "the kernel exists to implement the concept of 'signals.' (And for that matter... of 'processes' and 'threads.')" It creates these things: therefore, it does not (and cannot...) live by them.
Last edited by sundialsvcs; 04-23-2010 at 10:37 PM.
|