pthread_attr_getstack
extern int pthread_attr_getstack(const pthread_attr_t *attr,
ret = pthread_attr_getstack(&attr, &stackAddress, &stackSize);