- 博客(16)
- 问答 (1)
- 收藏
- 关注
Linux内核中的进程组及会话
将阐述Linux内核中的如下几个概念 1) 进程组 2) 会话 3) 控制终端 前面的概念来源于前人,我只是站在前人的肩膀上结合内核中的实现加深概念理解。 1.概念: a)进程组 Shell 上的一条命令行形成一个进程组 每个进程属于一个进程组 每个进程组有一个领头进程 进程组的生命周期到组中最后一个进程终止, 或加入其他进程组为止 getpgrp: 获得进程组 id, 即领头进程的 pid se...
2008-04-26 15:22:14 103
人真的要那么多吗?
“人真的要那么多吗?” --- 相思树 最近的coding比较轻松,得空闲看了一集央视的《相思树》,然后不可自拔。 在此之前,我对中国的电视剧是不屑的,无论是什么《金婚》,还是火了大半个中国的《士兵突击》,虽然作为军校毕业的我,都对之不屑一看。不是臭长就是脱离现实。 相思树又让我找回到自己感性的那一面,好久没有那种感觉了,作为理科生的我上学时没看多太...
2008-04-26 01:11:58 137
Why Doctors Say Not All Fat Is Created Equal
The recent report that having a pot belly in your 40s roughly triples your risk of dementia in later life is just the tip of an ominous adipose iceberg.Belly fat -- the visceral kind that accumulates ...
2008-04-24 09:55:05 226
China Stocks, Once Frothy, Fall By Half In Six Mos
The sharp decline in Chinese stocks is approaching a milestone: With a 4% drop Friday, the market has fallen by nearly half since its peak last fall. The decline has wiped out nearly $2.5 trillion of ...
2008-04-21 14:12:12 192
Going for the Gold
Quick, name a few major Chinese sports stars -- besides Yao Ming of the National Basketball Association.That isn't something the average person outside of China can do easily, despite the possibility ...
2008-04-21 01:10:22 516
For Many, A Dream Job Is One That Isn't A Nightmar
Asked what job they would take if they could have any, people unleash their imaginations and dream of exotic places, powerful positions or work that involves alcohol and a paycheck at the same time.Or...
2008-04-18 13:16:49 122
Where Have You Gone, Lei Feng?
During the 2004 Summer Olympics in Athens, little-known Chinese hurdler Liu Xiang shattered the myth that Asian athletes couldn't excel in track events. Mr. Liu won the gold, and tied the world record...
2008-04-17 14:16:54 994
自己动手改写komodo sourcetree插件 对C/C++的支持
其实很简单了, 找到sourcetree.js 的 正则判断那一块加上case 'C++': function_tag =/^\s*[\w<>\(\)_\s"\*]+\s+([\w:\*&>\[\]=<]+)\(.*[^;]+$|^\s*(main)\(|\s*(\w+::[\w~]+)\(.*[^;]+$/;...
2008-04-16 22:11:01 271
js的名字空间用例
<script>__namespace__({com:{akira:{test:(function(){ function A() { A.prototype.a = function(){alert('A in a');} } function B() { B.prototype.a = function()...
2008-04-16 15:08:08 86
Growing Pains
China's dramatic economic growth is now presenting a new challenge: urban policy. Mass migration to cities is leading to the loss of arable land and urban sprawl; spiraling demand for energy and n...
2008-04-16 01:14:21 131
js 对加载图片的判断
var IE=navigator.appName=="Microsoft Internet Explorer";var Opera=navigator.appName.toLowerCase()=="opera";var FF=!IE && !Opera;function loaderFunction(style,num,iframe_width,iframe_hei...
2008-04-15 19:31:49 69
GNU C的 __attribute__ 机制
GNU C的一大特色(却不被初学者所知)就是__attribute__机制。__attribute__可以设置函数属性(Function Attribute)、变量属性(Variable Attribute)和类型属性(Type Attribute)。__attribute__书写特征是:__attribute__前后都有两个下划线,并切后面会紧跟一对原括弧,括弧...
2008-04-15 15:34:28 81
module的认识和写法
不知道在什幺时候,Linux 出现了 module 这种东西,的确,它是 Linux 的一大革新。有了 module 之后,写 devicedriver 不再是一项恶梦,修改 kernel 也不再是一件痛苦的事了。因为你不需要每次要测试 driver 就重新 compilekernel 一次。那简直是会累死人。Module 可以允许我们动态的改变 kernel,加载 device driver...
2008-04-15 15:29:34 293
Chrysler, Nissan Join Up On Small Cars, Pickups
Chrysler LLC and Nissan Motor Co. (NSANY) Monday announced they will join forces to produce small cars and full-size pickup trucks for the U.S. market, a development many in the auto industry had expe...
2008-04-15 13:23:58 211
dynamic_cast、static_cast、const_cast 和 reinterp
dynamic_cast、static_cast、const_cast 和 reinterpret_cast 一、dynamic_cast: 用法: dynamic_cast<type-id> (expression).将expression转化为具有type-id型的指针。type-id必须是一个 指针、引用(一个已经定义的类)或者...
2008-04-10 15:16:24 143
static_cast、dynamic_cast、reinterpret_cast、和const_c
static_cast、dynamic_cast、reinterpret_cast、和const_cast关于强制类型转换的问题,很多书都讨论过,写的最详细的是C++ 之父的《C++ 的设计和演化》。最好的解决方法就是不要使用C风格的强制类型转换,而是使用标准C++的类型转换符:static_cast, dynamic_cast。标准C++中有四个类型转换符:static_cast、dynamic...
2008-04-10 15:14:23 61
空空如也
关于ajax阻塞调用
2008-10-07
TA创建的收藏夹 TA关注的收藏夹
TA关注的人