易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux C notes (BOOK UNIX)

Chapter 1: Thread
① thread functions
1. pthread_self();
2. thread existing
    you can get the value of rval_ptr just by  pthread_join(pthread_t tht, void ** rval_ptr)
    cancel a thread as the thread exits with PTHREAD_CANCELED in pthread_exit, this function        only send a signal but not wait until the thread really exits
        We can give a function to a thread with which the thread can invoke it when it exits. This
        pthread_clean_push
        These two functions must be in pairs in your function routines but not in the main                function. And one thing should be mentioned as : the routine should not be returned but
        pthread_detach(pthread_t tid)
4. Thread synchronization of thread
② thread. synchronics
        pthread_mutex_t variable
        pthread_mutex_destroy()
        ii. Lock
        pthread_mutex_trylock() return instantly
        pthread_unlock()
        pthread_rwlook_t
        pthread_rwlock_init
        pthread_rwlock_destroy
        ii. Lock
        pthread_rwlock_wrlook
        pthread_rwlock_unlock
        pthread_rwlock_tryrdlock
        pthread_rwlock_trywrlock        
    3. Cond
        i. initiation
        pthread_cond_init(&pcndt, attr);
     


相关文档:

用C写的3D迷宫

          Boss说,要看OpenGL,看了快一个月,总算出了个像样的东西,用C写了个3D迷宫,
虽然只有350行
       代码,不过边学边写,足足写了一周时间,还是小有成就感的,活活活!
         &n ......

使用Linux的rsync命令实现:多服务器镜像同步

  实现功能:当用户在本地客户端某目录内建立、修改、删除目录或文件、修改目录或文件的属性,只要执行相同的shell脚本,rsync就会自动找出有改动或删除的数据,将其传送到服务器上,使服务器端某目录内的数据跟本地客户端某目录内的数据保持一致。
  ★方式一:
  一、服务器端(例:10.0.0.1*):
  1、创建用 ......

Linux diff与patch的深入分析

Linux diff与patch的深入分析
http://blog.csdn.net/vrix/archive/2009/08/25/4483906.aspx
diff的输出格式分为传统格式和统一格式
1)diff的传统格式输出.
############################################
cat before.txt
输出:
This is a line to be deleted
This is a line that will be changed
This is a line ......

linux引导过程内幕


Linux 引导过程内幕
 
 
引导 Linux® 系统的过程包括很多阶段。不管您是引导一个标准的 x86 桌面系统,还是引导一台嵌入式的 PowerPC® 机器,很多流程都惊人地相似。本文将探索 Linux 的引导过程,从最初的引导到启动第一个用户空间应用程序。在本文介绍的过程中,您将学习到各种与引导有关的主题, ......

[C]C语言基础巩固专题 链表之(链表创建和删除)

 链表中有两个关键的操作:创建和删除。今天我就对这两个操作进行介绍,
从这两个操作中学习到链表的基本用法。
1. Create
   Create() 是一个链表基础,只有建立好链表才能对它进行相应的查找,删除 等。
  基本算法:
  1.初始化
     head=NULL;
   ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号