Avatar_small

more命令

2、more 文件内容或输出查看工具; more 是我们最常用的工具之一,最常用的就是显示输出的内容,然后根据窗口的大小进行分页显示,然后还能提示文件的百分比; [root@localhost ~]# more /etc/profile 2.1 more 的语法、参数和命令; more [参数选项]...

Avatar_small

UVA 299: Train Swapping

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=4&problem=235&mosmsg=Submission+received+with+ID+8686327 题目大意: 按...

Avatar_small

UVA 494: Kindergarten Counting Game

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=6&problem=435&mosmsg=Submission+received+with+ID+8686248 题目大意: 求...

Avatar_small

cat命令

1、cat 显示文件连接文件内容的工具; cat 是一个文本文件查看和连接工具。查看一个文件的内容,用cat比较简单,就是cat 后面直接接文件名。 比如: [root@localhost ~]# cat /etc/fstab 为了便于新手弟兄灵活掌握这个工具,我们多说一点常用的参数; 1.0 cat 语法结构; ...

Avatar_small

UVA 113: Power of Cryptography

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=3&problem=49&mosmsg=Submission+received+with+ID+8686160 题目大意: 一个...

Avatar_small

嵌入式实时操作系统中优先级翻转问题的分析与解决方案

1 优先级翻转(Priority Inversion) 优先级翻转(Priority Inversion),是指某同步资源被较低优先级的进程/线程所拥有,较高优先级的进程/线程竞争该同步资源未获得该资源,而使得较高优先级进程/线程反而推迟被调度执行的现象。 优先级翻转现象在普通的分时调度系统中对系统的影响不大,或者本来就对优先级高低的进程/线程被调度的顺序就不太在意的情况下,不用太多关...

Avatar_small

优先级翻转与优先级继承

田海立 2006-3-7 本文描述操作系统中的优先级翻转(Priority Inversion,也有翻译为反转,逆转或倒置的)现象以及如何用优先级继承来解决此类问题的方法,并阐述了 Microsoft Platform Builder for Windows CE 环境下,如何查看此种现象。 目 录 摘要 1 优先级翻转(Priority Inversion) ...

Avatar_small

信号量、二进制信号量、互斥信号量(二进制信号量 貌似只存在于VxWorks系统)

二进制信号量 这种信号量有两种功能:互斥和同步。它经过精心设计,效率很高,很适合性能要求高的应用。互斥信号量也是一种Binary信号量,它专门为互斥设计的,但是如果在认为没有必要使用互斥信号量的场合可以用Binary信号量提供互斥功能(需要使用互斥信号量的特殊场合将在介绍互斥信号量中进行说明)。 一个Binary信号量有两种状态:可利用(full)和不可利用(empty)。用se...

Avatar_small

线程同步互斥的控制方法(转载)

四种进程或线程同步互斥的控制方法 1、临界区:通过对多线程的串行化来访问公共资源或一段代码,速度快,适合控制数据访问。 2、互斥量:为协调共同对一个共享资源的单独访问而设计的。 3、信号量:为控制一个具有有限数量用户资源而设计。 4、事 件:用来通知线程有一些事件已发生,从而启动后继任务的开始。 临界区(Critical Section) 保证在某一时...

Avatar_small

UVA 108: Maximum Sum

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=3&problem=44&mosmsg=Submission+received+with+ID+8683782 题目大意: 一个...

Avatar_small

UVA 10018: Reverse and Add

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=12&problem=959&mosmsg=Submission+received+with+ID+8683636 题目大意: ...

Avatar_small

UVA 10035: Primary Arithmetic

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=12&problem=976&mosmsg=Submission+received+with+ID+8683305 题目大意: ...

Avatar_small

UVA 10038: Jolly Jumpers

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=12&problem=979&mosmsg=Submission+received+with+ID+8683259 题目大意: ...

Avatar_small

OCR(Optical Character Recognition/光学字符识别)

miniOCR软件免费的图像文字识别软件:http://www.xdowns.com/soft/softdown.asp?softid=28674 GNU开源OCR系统:http://www.gnu.org/software/ocrad/ocrad.html 汉王 PDF OCR V8.1简体中文版:http://xiazai.zol.com.cn/detail/34/335364....

Avatar_small

UVA 136:Ugly Numbers

题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=72 题目大意: 素数因子只有2、3、5的数叫做丑数,求出第1500个丑数。 解题思路: 因为指定...