//---------------------------------------------------------------- // pidhello.cpp // // This program prints a greeting that shows its process-ID. // // programmer: ALLAN CRUSE // written on: 05 AUG 2004 //---------------------------------------------------------------- #include // for printf() #include // for getpid() int main( void ) { printf( "\nprocess %d says \'Hello!\' \n\n", getpid() ); }