摘要:
#ifndef _IMPLEMENT_H #define _IMPLEMENT_H #ifdef _WIN32_WINNT #undef _WIN32_WINNT #endif #define _WIN32_WINNT 0x400 #include <windows.h> /* * In case 阅读全文
摘要:
#include "stdafx.h" #include <pthread.h> #include <stdio.h> void * thread_routine(void*arg); void * thread_routine(void*arg) { return arg; } int main( 阅读全文
摘要:
#include "pthread.h" #include "implement.h" int pthread_attr_init (pthread_attr_t * attr) /* * * DOCPUBLIC * Initializes a thread attributes object wi 阅读全文
摘要:
2.1 节讲诉创建和管理线程的编程内容,即如何建立线程,线程在程序中如何表示,以及建立线程后能对他们进行的基本操作。 2.2 讲诉线程的生命周期,从线程建立到线程回收。该节将讲诉线程所有能够经历的调度状态。 阅读全文
摘要:
方法一 #include "stdafx.h" #include <stdio.h> #include <assert.h> #include <windows.h> #include <process.h> // 包含这个头文件就行 方法二 移植posix库: 移植官网: ftp://source 阅读全文
摘要:
所有英文字符都是使用字符数组存储的,也就是打通了计算机与英语的联系。 static void strarray_printf(char *data, int len) { int i; for (i = 0; i < len; i++) { printf("0x%02x ", data[i]); } 阅读全文
摘要:
这篇文章说的很好 https://www.cnblogs.com/yaoqingzhuan/p/10889718.html 我遇到的坑: (1) .~bash 是在home目录下面的 (2)export里面的路径错误 也不会报错 所以的要认真看一下 我在这里坑过。 (3)直接export xxx 命 阅读全文