create a function to get pids
create a function to get status
create a function to show the stack memory