Process ID in microkernel

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
mudi

Process ID in microkernel

Post by mudi »

I wonder if the PID's(process id)are harcoded in the apps that call server functions,
or shoudl we use a systemcall like "int pid = GetServer(char *servername);" ???
(PID's are needed to send messages,in other words to call server functions)
J. Weeks

RE:Process ID in microkernel

Post by J. Weeks »

>On 2001-07-30 16:22:57, mudi wrote:
>I wonder if the PID's(process id)are harcoded in the apps that call server functions,
>or shoudl we use a systemcall like "int pid = GetServer(char *servername);" ???
>(PID's are needed to send messages,in other words to call server functions)

I think had-coding, in general, is a bad practice. It's much
more flexible using the later (GetServer) technique, and
will survive through generations of bugfixes and
changes to your OS.

J.Weeks
Post Reply