@staticmethod
def getCmdlineForThread(pid, tid):
    """
        Returns the cmdline for a thread.
        :param pid: The pid of the parent process.
        :param tid: The tid of the thread.
        :return:
        """
    path = '/proc/{pid}/task/{tid}/cmdline'.format(pid=pid, tid=tid)
    with open(path, 'r') as fi:
        return fi.readline()
