GET_PID process ID of Matlab session

function pid = get_pid()

if stdlib.matlabOlderThan('R2025a')
  pid = feature("getpid");
else
  pid = matlabProcessID;
end

pid = uint64(pid);

end