# Basic Thread Management

- ## Thread Identification

  - pthread_t pthread_self()
  - int pthread_equal(pthread_t t1, pthread_t t2);
  - Do not compare pthread_t types directly

- ## Thread Attributes

  - Allows non-default configuration of threads at creation time
  - int pthread_attr_init( pthread_attr_t *attr);
  - int pthread_attr_destroy( pthread_attr_t *attr);
  - Modified via pthread_attr_get*(), pthread_attr_set*()
  - int pthread_attr_setstacksize( pthread_attr_t *attr, int size);
  - int pthread_attr_getstacksize( pthread_attr_t *attr, int *size);

Previous slide | Next slide | Back to first slide | View graphic version