当前进程消亡时主要做了三件大事:释放当前进程占用的资源;为当前进程的子进程重新寻找“养父”;通知当前进程的父进程,释放当前进程剩下的资源。...
                            
                            
                                分类:
系统相关   时间:
2014-05-01 22:09:35   
                                阅读次数:
607
                             
                         
                    
                        
                            
                            
                                Linux
 shell脚本中shift的用法说明
shift命令用于对参数的移动(左移)。
示例1:依次读取输入的参数并打印参数个数:
run.sh:
#!/bin/bash
while [ $# != 0 ];do
echo "第一个参数为:$1,参数个数为:$#"
shift
done
输入如下命令运行:run.sh a b c d e...
                            
                            
                                分类:
系统相关   时间:
2014-05-01 22:06:54   
                                阅读次数:
475
                             
                         
                    
                        
                            
                            
                                答:这样的代码是在jsp里出现的吧, 那么他的含义就是为了得到一个路径, 
做动态网站时,需要提交form表单 在表单的action里面就会这样来写 action="/add.do" 
这样来提交到相应的servlet中去,这样可以避免路径的错误,而采用这样的相对路径会更好些答:request.getC...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 21:19:06   
                                阅读次数:
351
                             
                         
                    
                        
                            
                            
                                activating vt-x from biosIf you have HP 
EliteBook 8770w do:Shutdown your mobile workstation.Push startup buttonpush ESC 
keypush F10 to open BIOS setup...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 21:08:36   
                                阅读次数:
512
                             
                         
                    
                        
                            
                            
                                Problem DescriptionIgnatius has just come back 
school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher 
gives him a deadline o...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 20:49:40   
                                阅读次数:
563
                             
                         
                    
                        
                            
                            
                                这个五月份,what will to 
do?1、软件设计师考试2、英语六级考试3、暑假的实习前几天的教训,不会忘记,现在总会有那么一种模式叫做“许冰模式”。所有的语言都是苍白的,即使我们可以尽情的洋洋洒洒的描述,但是,最后提取的关键字,就是那几个名词,刺眼的名词,我会用实际行动去表达。还是那一句:做...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 19:56:40   
                                阅读次数:
334
                             
                         
                    
                        
                            
                            
                                Determine whether an integer is a palindrome. 
Do this without extra space.Some hints:Could negative integers be palindromes? 
(ie, -1)If you are thinki...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 19:48:19   
                                阅读次数:
344
                             
                         
                    
                        
                            
                            
                                题目链接:617 - Nonstop Travel
题意:给定一些红绿灯,现在速度能在30-60km/h之内,求多少个速度满足一路不遇到红灯。
思路:暴力每一个速度,去判断可不可以,最后注意下输出格式即可
代码:
#include 
#include 
#include 
const double esp = 1e-6;
int n, vis[105];
struct D {
    do...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:45:20   
                                阅读次数:
333
                             
                         
                    
                        
                            
                            
                                本文只是作者本人在混迹于树莓派相关的论坛贴吧良久后的一些感想。纯属个人观点,限于本人能力有限,难免有所偏颇,还望斧正。
在能想到的所有品格中我认为最重要的就是这个:
LIY / TIY / DIY
Learn it yourself / Try it yourself / Do it yourself, 自己学、自己试、自己做。麻雀虽小五脏俱全,树莓派是一个复杂的系统,涉及到...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:23:20   
                                阅读次数:
300
                             
                         
                    
                        
                            
                            
                                1、
??
Reorder List 
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:16:21   
                                阅读次数:
250