Page 1 of 1

Process ID in microkernel

Posted: Sun Jul 29, 2001 11:00 pm
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)

RE:Process ID in microkernel

Posted: Mon Jul 30, 2001 11:00 pm
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