Closed kjnsn closed 9 years ago
Userspace process manager APIs are still in development, but current internal kernel API to start process looks like this (depends on resources
module)
resources.processManager.create(rt.initrdText("/app/test.js"), arguments);
And how would a restricted set of functionality be given to a process? Would processes inherit their parents "environment"?
You need to provide everything process needs in it's arguments object. This includes system resources, interfaces, environment, command line etc.
How would the concept of a "process" fit in with the kernel? How would I start one? And how would a restricted set of functionality be given to a process?
I think it would be useful to have a central process manager; this need not be complicated.
Would processes inherit their parents "environment"? This is an incredibly useful feature on UNIX, as it allows you to configure programs on the fly.