[Lazarus] Process ID

Marco van de Voort marcov at stack.nl
Thu Sep 13 18:16:34 CEST 2012

On Thu, Sep 13, 2012 at 03:33:25PM +0000, Mark Morgan Lloyd wrote:
> > Yet another approach of ransacking the whole disk.
> > This time just to get a process ID.
> > Is that state of the art software developement?
> > There is no other way doing it on Linux?
> [Sigh] /proc is a special filesystem which the kernel uses to expose 
> information about each process. Apart from the fact that it is mounted 
> into the standard filesystem namespace, it has absolutely nothing to do 
> with a physical disc.

Still it is at least one syscall to enumerate the dir and then 2-3 syscalls
(open/read/close) to get a value. Not counting fileexists() which is
probably another syscall.

More information about the Lazarus mailing list