摘要: C语言中多线程编程包括的文件:#include<pthread.h>(linux环境下) pthread_t //线程函数返回类型 pthread_mutrex_t //互斥锁类型 int pthread_create(pthread_t *thread,pthread_attr_t *attr,v 阅读全文
posted @ 2017-10-23 18:33 hai5111 阅读(2822) 评论(0) 推荐(0) 编辑
摘要: static、extern、auto、register是属于存储说明符。在声明的时候,存储说明符最多只能使用一个,而且无法用在typeof声明中。 这四种存储类说明符有俩种存储期:自动存储期和静态存储期。其中auto和register对应自动存储期。具有自动存储期的变量在进入该变量的程序块时被建立, 阅读全文
posted @ 2017-10-23 11:51 hai5111 阅读(153) 评论(0) 推荐(0) 编辑