implemented get_pid()
processes terminate and stay resident