自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

奇峰小筑

留着,不懂过来翻翻

  • 博客(4)
  • 资源 (2)
  • 收藏
  • 关注

原创 [unix]两个互斥量保护共享变量自增,保证线程执行安全实例

#include "apue.h"#include #define NHASH 29#define HASH(id) (((unsigned long)id)%NHASH)struct foo *fh[NHASH];pthread_mutex_t hashlock = PTHREAD_MUTEX_INITIALIZER;struct foo { int

2018-01-12 17:58:08 292

原创 [unix]pthread_cleanup_push & pthread_cleanup_pop 实例

#include "apue.h"#include void cleanup(void *arg){ printf("cleanup: %s\n", (char *)arg);}void * thr_fn1(void *arg){ printf("thread 1 start\n"); pthread_cleanup_push(cleanup,(void *

2018-01-12 16:32:31 365

原创 [unix]线程返回值

#include "apue.h"#include struct foo { int a,b,c,d;};void printfoo(const char *s , const struct foo *fp){ printf("%s",s); printf(" structure at 0x%lx\n",(unsigned long)fp); prin

2018-01-11 17:43:48 270 1

原创 [unix]线程创建

#include "apue.h"#include pthread_t ntid;void printids(const char *s){ pid_t pid; pthread_t tid; pid = getpid(); /*这里用pthread_self函数获取当前线程id,而不是用pthread_create执行时候保存在全局变量ntid

2018-01-11 14:29:39 368

php实现验证码

php实现验证码

2014-09-11

PHP实现柱形统计图源码

PHP实现柱形统计图实现,利用php gd库实现柱形统计图

2014-09-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除