自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (2)
  • 收藏
  • 关注

原创 ping to find hosts in current local network

ping to find hosts in current local network

2016-02-28 21:22:14 518

原创 we must recreate the epoll after fork

we must recreate the epoll after fork

2016-02-28 16:53:08 568

转载 [accept 4 ] what the difference between accept4 and accept

accept4

2016-02-28 15:23:16 1125

转载 [Linux]O_CLOEXEC 标志

O_CLOEXEC flag

2016-02-28 13:14:07 1273

原创 [matlab]copy image

copy image

2016-02-28 10:40:42 865

原创 [Linux]./configure 编译调试信息

./configure CFLAGS="-g"   CXXFLAGS="-g"

2016-02-26 17:48:41 3281

转载 how to tell if a library contain debug symbols or not

gcc write_test.c -o w.d -g $objdump -h w.d | grep debug 26 .debug_aranges 00000020 00000000 00000000 0000104e 2**0 27 .debug_info 00000101 00000000 00000000 0000106e 2**0 28 .debu

2016-02-25 19:47:28 436

原创 Linux C socket 编程常用函数

/* * Linux C socket 编程常用函数 */#include<stdio.h>#include<stdlib.h>#include<unistd.h>#include<errno.h>#include<netdb.h>#include<fcntl.h>#include<string.h>#include<sys/types.h>#include<sys/socke

2016-02-25 17:15:48 1618

原创 [QT]拖拽改变控件大小

Qt拖拽改变控件大小

2016-02-22 22:32:02 7172

原创 [WPF]拖拽改变区域大小

WPF拖拽改变区域大小

2016-02-22 21:38:17 6047

原创 [C#]class和struct的区别

在C#中,class按引用传递,而struct则按值传递

2016-02-22 21:24:57 533

原创 Linux下的消息队列示例

Linux下的消息队列示例

2016-02-22 20:32:00 588

转载 2 Types of Linux File Locking (Advisory, Mandatory Lock Examples)

http://www.thegeekstuff.com/2012/04/linux-file-locking-types/File locking is a mechanism which allows only one process to access a file at any specific time. By using file locking mechanism, many

2016-02-16 21:46:25 795

原创 结构体内部的偏移

结构体内部的偏移

2016-02-15 22:08:21 578

原创 linux 64位系统的指针为8字节

如果没有gcc在编译时认为函数返回int类型,而在64为系统中,int占4个字节,而指针占8字节,如果原函数返回指针,则会导致数据阶段,从而导致程序访问错误的内存空间。

2016-02-15 21:35:44 5116

转载 舍身喂虎

“师叔,肃观师弟已到。请您开关吧。”晨间薄雾,水气弥漫,灵智站在山门前合十说话,任他宝相庄严,方丈之尊,那大门不曾应声开启,仍是紧紧闭锁。众僧面面相觑,不知高低。灵定躬身上前,正要再问,忽然一阵山风徐徐吹来,达摩院前水雾飘散,现出了柔和曙光。咩……咩……佛光暖和,黎明曙曦中,众人彷佛置身梦境,伴随着远处的咩咩低叫,一群山羊缓缓而来,这是少室山野生的羊只。晨光中十来只大小白羊相互依偎

2016-02-12 17:05:15 1328

转载 libecb.h

/* * libecb - http://software.schmorp.de/pkg/libecb * * Copyright (©) 2009-2015 Marc Alexander Lehmann * Copyright (©) 2011 Emanuele Giaquinta * All rights reserved. * * Redistribution and use

2016-02-09 16:27:38 1058 2

转载 epoll example

#include #include #include #include #include #include #include #include #include #include #define MAXEVENTS 64static intmake_socket_non_blocking (int sfd){ int flags, s; flags = fc

2016-02-09 15:53:47 674

转载 Linux C TCP Programming example

//server.c#include #include #include #include #include #include #include void error(const char *msg){ perror(msg); exit(1);}int main(int argc, char *argv[]){ int sockfd, ne

2016-02-09 15:25:47 733

fetch12306

本文在Linux平台上,以Python为开发工具,介绍12306抢票软件的基本原理,并引入示例,讲解如何自己编写一个12306抢票软件。

2016-12-22

lq51--自己写的基于51单片机的嵌入式实时操作系统

Keil 自带的 RTX51—Tiny 系统有这样几个缺点:1、非占先式任 务调度,这样系统的实时性就很难保证;2、提供的系统服务太少, 只有 wait 与 signal。而 RTX51—Tiny 的优点是:1、Keil 公司自己开 发的,使用_task_关键字区别每个任务,这样可以使得被不同任务调 用的不同函数即使没有相互调用,他们的局部变量也不会相互覆盖。 免去了在 SmallRTOS 中需要手动制止函数间局部变量的相互覆盖。 2、内核小。整个 RTX51--Tiny 完整编译只需 900B 的空间。 lq51 系统整合了 RTX51—Tiny 的优点。1、在 lq51 系统中_task_ 关键依然有效,0 号任务依然是最高优先级的任务,1 号任务次之, 依次类推。2、lq51 系统完整编译只需 2.5K 的 ROM,并且系统自带 的 128B RAM 对 lq51 系统也是绰绰有余的。同时 lq51 系统弥补了 RTX51—Tiny 的缺点。首先 lq51 系统采用占先式任务调度,这样可 以最大限度保证系统的实时性。其次 lq51 系统提供 lqDelay、lqWaitFlg、 lqWaitSem、lqWaitMsg 这样四种系统服务,并 且每种系统服务都是可裁剪的。 lq51 系统中很多关于实时系统的概念及实现方法是从 ucosII 中学 来的,同时借鉴了 SmallRTOS 及 RTX51—Tiny。

2009-04-07

空空如也

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

TA关注的人

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