2013年9月9日

linux内核配置与编译

摘要: 清除临时文件、中间文件和配置文件命令:make clean //remove most generated files but keep the configmake mrproper //remove all generated files + config files make distclean //mrproper + remove editor backup and patch files配置内核命令:make config:基于文本模式的交互式配置。make menuconfig ARCH=i386:基于文本模式的菜单型配置。//“*”编译成内核(按y)(生成镜像),“m”编译成模 阅读全文

posted @ 2013-09-09 18:34 zbffff 阅读(327) 评论(0) 推荐(0)

linux下线程总结

摘要: Linux系统下的多线程遵循POSIX线程接口,称为pthread。编写Linux下的多线程程序,需要使用头文件pthread.h,链接时需要使用库libpthread.a。线程创建函数:int pthread_create(pthread_t *restrict thread,const pthread_attr_t *restrict attr, void *(*start_routine)(void*), void *restrict arg);//此处的线程ID即pthread_t 型通常定义一个局部变量的pthread_t型然后将地址代入即可,第二个参数通常为null,第三个参数为被 阅读全文

posted @ 2013-09-09 13:40 zbffff 阅读(203) 评论(0) 推荐(0)

导航