router_check_apn_ping.c
#include
#include
#include
#define OK 0
#define WARNING 1
#define CRITICAL 2
#define UNKNOWN 3
#define LEN 1000
//#define TCL_CMD "/home/weihu/tcl/"
...
分类:
移动开发 时间:
2015-02-14 16:15:16
阅读次数:
228
微软近期Open的职位:Job Title: Software Engineer IIWork Location: Suzhou/Beijing, ChinaNews is a critical areas for integration of mobile and services, one of...
分类:
其他好文 时间:
2015-02-12 07:03:28
阅读次数:
220
1 同步 如何同步多个线程对共享资源的访问是多线程编程中最基本的问题之一。当多个线程并发访问共享数据时会出现数据处于计算中间状态或者不一致的问题,从而影响到程序的正确运行。我们通常把这种情况叫做竞争条件(race condition),把并发访问共享数据的代码叫做关键区域(critical sect...
分类:
编程语言 时间:
2015-02-09 12:37:29
阅读次数:
246
传送门:Critical Links题意:给出一个无向图,按顺序输出桥。分析:模板题,求出桥后排个序输出。#include #include #include #include #include #include #include #include #include #include #includ...
分类:
其他好文 时间:
2015-02-07 15:49:56
阅读次数:
170
高级线程同步关键代码段1.原子操作。2.临界区指定一个CRITICAL_SECTION 数据结构g_cs,然后对EnterCriticalSection和LeaveCriticalSection访问共享资源当拥有一项可供多个线程访问的资源时,应该创建临界区。类似多个人上厕所。如果多个不是一道线程使用...
分类:
编程语言 时间:
2015-01-27 23:08:17
阅读次数:
289
写的不好轻喷
#! /bin/sh
STATE_OK=0
STATE_WARNING=1
STATE_CRITICAL=2
STATE_UNKNOWN=3
currdate=`date | awk '{print $2,"*",$3}'`
if [ `/usr/bin/sudo tail -20 /var/log/messages | grep "$currdate" | gre...
分类:
移动开发 时间:
2015-01-27 15:05:34
阅读次数:
250
本文将就自己对内核同步机制的一些简要理解,做出一份自己的总结文档。 Linux内部,为了提供对共享资源的互斥访问,提供了一系列的方法,下面简要的一一介绍。 Technorati 标签: 互斥 Linux 中断屏蔽 使用方法: local_irq_disable() //屏蔽中断 critical s...
分类:
系统相关 时间:
2015-01-27 08:08:45
阅读次数:
209
race conditions (when an anomalous result occurs due to an unexpected critical dependence on the timing of two events).A race condition occurs when tw...
分类:
Web程序 时间:
2015-01-27 00:08:31
阅读次数:
176
记住这几句话,学无止境。(Never stop learning.)沟通至关重要。(Communication is critical.)履行承诺,胜过交付。(Under promise, over deliver.)“我错了。”("I was wrong.")要是代码未经测试,那它就无法正常运行。...
分类:
其他好文 时间:
2015-01-13 07:50:46
阅读次数:
128
Requirements gathering is an essential part of any project and project management. Understanding fully what a project will deliver is critical to its ...
分类:
其他好文 时间:
2015-01-09 12:13:28
阅读次数:
201