MatrixBerryCore
getpidhost.m
Go to the documentation of this file.
1 function [pidHostStr,pidVal,hostName]=getpidhost()
2 mxBeanObj=java.lang.management.ManagementFactory.getRuntimeMXBean();
3 pidHostStr=char(mxBeanObj.getName());
4 if nargout>1
5  resCell=strsplit(pidHostStr,'@');
6  pidVal=str2double(resCell{1});
7  hostName=resCell{2};
8 end
function getpidhost()
GETPIDHOST returns process id (PID) of current Matlab instance along with a host name it is running o...