topics

全部话题 - 话题: handler
1 2 3 4 5 末页 (共10页)
i*****f
发帖数: 578
1
来自主题: Programming版 - 关于signal handler
【 以下文字转载自 Linux 讨论区 】
发信人: icewolf (好好活), 信区: Linux
标 题: 关于signal handler
发信站: BBS 未名空间站 (Mon Dec 21 18:22:17 2009, 美东)
最近在看gnu libc的manual,里面讲到signal handler的时候有这个例子(chapter 24
.4.2, http://www.gnu.org/software/libc/manual/html_node/Termination-in-Handler.html#Termination-in-Handler):
1 volatile sig_atomic_t fatal_error_in_progress = 0;
2
3 void
4 fatal_error_signal (int sig)
5 {
6 /* Since this handler is established for more than one kind of signal,
7 it might still get invoked recurs
y*****g
发帖数: 521
2
来自主题: Living版 - 能讲讲air handler吗?
air handler是Hvac的一部分?
买的房子卖家说Hvac unit是2001年的。inspection之后卖家按contractor建议把air
handler给换了,花费$2500。
我听说Hvac挺贵的,换新的要大概$5000。请问Hvac都包括什么?这个air handler又是
个啥,属于hvac的吗?
我wiki了半天也没明白。问朋友,人家说她家就木有air handler。。。
i***e
发帖数: 9429
3
因为你是A/C only, 加上没抱齐indoor unit 的型号,也没特别帮你查过,系统没法
RUN 效率值,所以猜想还有coil.现在清楚了。
你的冷气机肯定是14 SEER 级别的。
Hir Handler 还行,是High Efficiency ECM blower,已内置3 Ton coil。
请注意,air handler 不存在所谓的15SEER air handler.
这两个组合的系统效率值为:
SEER: 15.5
n*****3
发帖数: 15
4
新手刚开始vb.net不到一年,event handler部分还很困惑。手头有一个project, 是一
个windowsCE版的application.我的工作是把它转成windows application will be
running on win 7 os, 所有程序都不用改,只是event handler process 要改, 因为
不同os系统。
app是这样的,main form只包括一些button, click the button to open secondary
level forms, these forms will handle the sanner event, and based on the data
input, 3rd level forms could be open from some point and handle scanner
event too.
main form will just initial scanner class, no data handler. the secondary
and third level fo... 阅读全帖
n*****3
发帖数: 15
5
新手刚开始vb.net不到一年,event handler部分还很困惑。手头有一个project, 是一
个windowsCE版的application.我的工作是把它转成windows application will be
running on win 7 os, 所有程序都不用改,只是event handler process 要改, 因为
不同os系统。
app是这样的,main form只包括一些button, click the button to open secondary
level forms, these forms will handle the sanner event, and based on the data
input, 3rd level forms could be open from some point and handle scanner
event too.
main form will just initial scanner class, no data handler. the secondary
and third level fo... 阅读全帖
i*****f
发帖数: 578
6
来自主题: Linux版 - 关于signal handler
最近在看gnu libc的manual,里面讲到signal handler的时候有这个例子(chapter 24
.4.2, http://www.gnu.org/software/libc/manual/html_node/Termination-in-Handler.html#Termination-in-Handler):
1 volatile sig_atomic_t fatal_error_in_progress = 0;
2
3 void
4 fatal_error_signal (int sig)
5 {
6 /* Since this handler is established for more than one kind of signal,
7 it might still get invoked recursively by delivery of some other
kind
8 of signal. Use a static variable to keep track of that. */
9 if (fatal_err
i***e
发帖数: 9429
7
这台是普通的14SEER 冷气机, 不过配合不同的air handler 和Coil 可以达到最高
SEER16.5 的效率。
没见到你贴COIL 的型号上来。
air handler型号的最前面有4个字母:“RHL?”,还少一个
O***T
发帖数: 124
8
来自主题: Database版 - DB2 Stored Procedure Error Handler
我现在有一个很简单的stored procedure in db2
create or replace procedure P_1()
begin
insert into table_A ( column1,column2)
select a,b
from table_b;
end;
为了防止这个procedure fail(比如table_b不存在之类的情况...),我想放一个error
handler在这个statement里面,我不在乎到底是什么error,只要上面那个Insert
statement fail了(或者说这个sp fail了?),就往另外一个table添加一条类似Log
的记录Insert into table_c (column1,column2) values (P_1,current date)
想请教各位大牛这个code我该怎么写,从来没写过error handler的东西,网上查了很
久,仍旧是一片雾水,连应该放在这个insert statement前面还是后面还是专门写一个
error handler的sp都没想明白。
另外,因为工作关系,现在开始接触... 阅读全帖
d*******u
发帖数: 186
9
来自主题: JobHunting版 - job handler Qs
Here are 3 programs I would like you to write in C++. Each one builds on the
last.
Step 1: Write a Job Handler class that can handle multiple Requests that are
trying to access a single Resource. Each Resource can only be allocated by
one Request at a time. The requests should be handled in the order in which
they are received by the Job Handler.
Step 2: Extend this class to handle multiple Resources.
Step 3: Do not allow the same Requestor to submit a Request for two
Resources simultaneously.
m*f
发帖数: 8162
10
来自主题: Living版 - 能讲讲air handler吗?
HVAC包括主要包括ventilation, heating/cooling units, duct work。。。
不觉得换整套新的HVAC $5000就够了,光duct work就要好几千。
一个air handler $2500似乎有点贵,但是也差不多。
air handler是ventilation的主要方式。
为啥不找你家男人搞清楚这些问题?
如果你家男人不给力,找本版HVAC大牛爱莫吧。。。爱莫热心能干,找他绝对没错。。
y********5
发帖数: 318
11
本来要求的是Rheem 16 seer 的空调,装完后告诉我们是15 seer 的 handler,
outdoor 的是16 seer condenser. 我想你本来就来看过一次,尺寸应该有数的,量过。
装完后,要求下,才告诉我是15seer. 而且还收我一样的钱。心里很不舒服,难道两个
规格尺寸不一样大?有点阴谋的感觉。
求证他这种说法合理吗?估计两种机器差多少钱?这样匹配吗?谢谢。
y********5
发帖数: 318
12
Coil 是什么? 他没有给我。Air Handler 型号是 RHLL......
他给我报的是16 seer 的价格,为什么是“ 14SEER 冷气机”?
j*****l
发帖数: 18
13
来自主题: loseweight版 - bliss的love handler好劲啊!!!
bliss的love handler好劲啊!!!只需要一点点的量涂个30秒左右,过不一会儿腰间
就火辣辣得很呐~好真切地感受到我的脂肪在燃烧~~~在燃烧~~~ho!ha!就让love
handler把我的love handle给灭了吧!!!
l******b
发帖数: 39
14
来自主题: Database版 - DB2 Stored Procedure Error Handler
u can use
EXCEPTION WHEN OTHERS
THEN
-- ur error logging or handling
-- statements here
// when others handler is a catch-all
// handler.

error
Log
i*****f
发帖数: 578
15
来自主题: Programming版 - 关于signal handler
Thanks for help!
what is line 9 trying to judge? If fatal_err_in_prog is set, does that mean
another instance of this handler has been invoked for another signal? If
this is the case, why doesn't this handler simply return in this case?
Why does it raise the signal again?

type
o***d
发帖数: 313
16
看wiki 说page fault triggers OS's exception handler. 就是说isr把?
thanks
l**********n
发帖数: 5272
17
来自主题: Fishing版 - Fish handler's disease
看到拉水牛鱼的帖子里的水牛鱼身上有红斑,想起我刚钓了一条死喘婆也是身体带红斑
疹。记的以前讨论大嘴身上的黑斑的时候讨论过,是一种什么病。红斑狼疮吗? 我古
狗了一下,发现一种病叫fish handler's disease,比较可怕,会传染给人,传染到手
脚或者淋巴结上。经常搞鱼刮鱼鳞的人就可能得这病。
病源,有说是细菌,也有说是寄生虫。
l**********n
发帖数: 5272
18
来自主题: Fishing版 - Fish handler's disease
在你已经得了fish handler's disease的前提下,如果让你选,是从鱼那里得还是从女
司机那里得,我猜,你一定会选女司机。
r*******n
发帖数: 14
19
http://sports.yahoo.com/top/news;_ylt=Akc.tkt9PynV%20RF3uJrhJptw5nYcB?slug=ys-floyd051209&prov=yhoo%20&type=lgns
Source: Floyd gave cash to Mayo handler
By Charles Robinson and Jason Cole, Yahoo! Sports 3 hours, 21 minutes ago
LOS ANGELES – USC men’s basketball coach Tim Floyd made a direct cash
payment to a man who helped deliver O.J. Mayo to the Trojans program,
according to Louis Johnson, a former member of Mayo’s inner circle.
Johnson, a one-time Mayo confidant, has told both NCAA investigat
w****e
发帖数: 144
20
来自主题: pets版 - 为啥handler全是大胖子
大部份handler好像都不是参赛狗狗的真主人,只是被雇来在台上show狗走几圈的,估
计平常也不咋运动什么的。
m***h
发帖数: 23691
21
来自主题: pets版 - 为啥handler全是大胖子
狗大部分时间是寄养在handler那里的
m***h
发帖数: 23691
22
我想知道为什么名handler都是胖子
O***T
发帖数: 124
23
来自主题: Database版 - DB2 Stored Procedure Error Handler
因为可能还有其他的error存在, 所以想用error handler来处理各种可能的sp
failures.
现在的构想是想用VBA call 这个sp,放在access里给其他人用,一旦sp fail了,
access可以跳出一个窗口,告诉他们程序没有运行成功,但是他们不用知道具体的
error是什么。
h****n
发帖数: 45
24
来自主题: Java版 - Signal handler, thanks
Anyone knows how to write a signal handler such that an application running in
JVM responds signals? Is there any convenient way to do so? will the
application suffer performance penalty? Thanks
i*****f
发帖数: 578
25
来自主题: Linux版 - 关于signal handler
raise() just send a signal to itself. I think the codes below raise() will
continue to be executed. See man 3 raise. Also, try the following code:
#include
#include
#include
/* A handler for the ALARM signal */
void act_sigalrm(int sig)
{
puts("catched a SIGALRM");
/* raise this signal again. */
raise(sig);
puts("this code will be executed.");
}
int main()
{
signal(SIGALRM, act_sigalrm);
/* issue SIGALRM 3 sec later */
alarm(3);
/* entering event l
d*****9
发帖数: 147
26
我们需要TSE和OSE的Stock和Index Futures的exchange market data feed handlers.
板上如果有非常熟悉这个系统能快速实现的,或者手头有现成代码系统的,请站内联系
我。
谢谢。
d******i
发帖数: 7160
27
来自主题: Hardware版 - Ps3MediaSever不能Stream冰电影?
咋回事呢?
GUI的TRACE记录:
INFO 2013-04-02 11:45:28.421 [Request Handler] Starting transcode/remux of
PLAY - No Subs
INFO 2013-04-02 11:45:34.906 [StartPlaying Event] renderer: 192.168.1.116,
file: http://192.96.204.196:8080/d/ich4fibzpqikmrsce4gxkq4opihgy4a3xorw3lcbcomgyevhmwwxpgzk/the.office.us.s09e10.hdtv.x264-2hd.mp4
INFO 2013-04-02 11:45:43.203 [Request Handler] Starting transcode/remux of
PLAY - No Subs
INFO 2013-04-02 11:45:47.203 [StopPlaying Event] renderer: 192.168.1.116,
file: http://192.... 阅读全帖
m****o
发帖数: 4148
28
来自主题: Food版 - 宫保鸡丁~
全称是:AKC's Canine Good Citizen Test,分为10部分,必须全部合格才算通过考试:
Test 1: Accepting a friendly stranger
The dog will allow a friendly stranger to approach it and speak to the
handler in a natural, everyday situation.
Test 2: Sitting politely for petting
The dog will allow a friendly stranger to pet it while it is out with its
handler.
Test 3: Appearance and grooming
The dog will welcome being groomed and examined and will permit someone,
such as a veterinarian, groomer or friend of the owner, to do so.
Te... 阅读全帖
Z**i
发帖数: 5681
29
来自主题: pets版 - Sieben险过CGC
又是8个礼拜过去了
今天是考试的日子
Test 1: Accepting a friendly stranger
The dog will allow a friendly stranger to approach it and speak to the
handler in a natural, everyday situation.
这个不错,他没啥动静
Test 2: Sitting politely for petting
The dog will allow a friendly stranger to pet it while it is out with its
handler.
还不错,他乖乖的让人PET
Test 3: Appearance and grooming
The dog will welcome being groomed and examined and will permit
someone, such as a veterinarian, groomer or friend of the owner, to do so.
这个还凑合,让人家刷了两下
... 阅读全帖

发帖数: 1
30
来自主题: pets版 - 上周看到Flat-Coated Retriever
Labrador retriever
Golden retriever
British retriever
一直没有搞明白这个的特点。。。
To carry out the duties of a gun dog, a retriever should be trained to
perform these tasks:
Remain under control: Retrievers are typically used for waterfowl
hunting. Since a majority of waterfowl hunting employs the use of small
boats in winter conditions, retrievers are trained to remain under control
sitting calmly and quietly until sent to retrieve.[1] This is often referred
to as "steadiness". Steadiness helps to avoi... 阅读全帖
P******g
发帖数: 18
31
2002年的Heat pump系统(品牌Carrier)只加热,不吹风了,是air handler的
variable speed motor坏了。
有home warranty,保险公司说给换air handler。得额外交$550。由于保险公司找的
contractor网上rating非常差,有点信不过,所以自己又花100块找了个rating相当好
的公司A,想要个second opinion。公司A建议air handler和室外机一块儿换。报价$
8300。
邻居说他两年前刚换了heat pump(室内外一起换的),找的local小公司B,换的
Bryant品牌,花了$4000多点儿。我又找公司B报了价,也要$8000。
下面是机器型号对比:

公司A: (10年warranty)
室内机:FV4CNB005L (Variable speed air handler)
室外机:226ANA048 (Bryant preferred series, single stage output, 4 ton, heat
pump)
公司B: (10年warrant... 阅读全帖
b***i
发帖数: 3043
32
新的信息
大神帮看看那里可以提高?
[ 0.128265] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[ 0.129791] tps65910 1-002d: JTAGREVNUM 0x1
[ 0.133728] print_constraints: VRTC:
[ 0.135223] print_constraints: VIO: at 1500 mV
[ 0.137603] print_constraints: VDD1: 600 <--> 1500 mV at 1100 mV normal
[ 0.139923] print_constraints: VDD2: at 1100 mV
[ 0.140960] print_constraints: VDD3: 5000 mV
[ 0.142425] print_constraints: VDIG1: at 1800 mV
[ 0.143890] print_constraints: VDIG2: at 1800 mV
[ ... 阅读全帖

发帖数: 1
33
来自主题: Military版 - 前段时间 自己换了个新 ac.
【 以下文字转载自 Living 讨论区 】
发信人: allienpig (猪 in black), 信区: Living
标 题: 前段时间 自己换了个新 ac.
发信站: BBS 未名空间站 (Wed May 16 16:10:48 2018, 美东)
老空调不制冷 一开始以为是电容的问题 ,后换了电容 还是不转。 查了查relay 原来
relay卡住了 把那个按钮按下后 风扇转 但压缩机还是不转。 估计压缩机挂了 , 整
套系统是r22a的。修压缩机超级贵 因为r22制冷剂特别贵。所以就把整套系统都换了算
了。
就在eBay上买了个mr cool的ac跟air handler. 1300块。 寄到家后 发现 这个mr cool
其实就是payne. 机器型号都一样。
最难的部分其实是拆老air handler跟装新air handler,因为在阁楼里 空间特别小。
我是把air handler分解了, a coil, blower assembly case这样一件件拆下来的。
装air handler也是, 整个装太重了。也是先拆了 先把case运上去 装上去,新的 ai... 阅读全帖
l****z
发帖数: 29846
34
Chelsea Handler is not very happy with Instagram right now.
On Thursday, the 39-year-old comedienne reportedly posted a topless image of
herself alongside Vladimir Putin, both straddling horses, to the social
media site. It was deleted immediately.
After administrators notified the television personality of their guidelines
, Handler claimed she was being discriminated against because she's a female.
Handler's rant didn't stop there. She wasted no time in posting the same
image to her Twitter pa... 阅读全帖
c******n
发帖数: 381
35
来自主题: Living版 - 解答空调
楼主你好,马上要换空调,预算是经济型的,得到下面的估价,对不同的牌子和model
我们看了网上的评论,比如Carrier comfort 15和 comfort 13 比起来的噪音低些,省
电些。其他的区别我们不太理解.
旧的空调是YORK ,3.5 Ton Heat Pump。 家里面积一楼1300,二楼五百多。
问题:
1)下面不同的机子关键区别在哪儿,区别大吗?哪一种性价比比较好?
特别是Carrier comfort 15和 comfort 13 的比较。
2)当地还有一家代理Tempstar 这个牌子的,quote要明天才有。网上评论是他家的高
端机子T开头的 model 质量还不错,可以和Carrier比较。这个牌子如何?
谢谢你的建议。
Warranty: Ten Years Parts, Five Years Labor
1)Total Cost: $5,854
Carrier Comfort 15 High Efficiency Heat Pump & Comfort Series Air Handler
Carrier Comfort 15, 25HBC5... 阅读全帖
c******n
发帖数: 381
36
来自主题: Living版 - 解答空调
楼主你好,马上要换空调,预算是经济型的,得到下面的估价,对不同的牌子和model
我们看了网上的评论,比如Carrier comfort 15和 comfort 13 比起来的噪音低些,省
电些。其他的区别我们不太理解.
旧的空调是YORK ,3.5 Ton Heat Pump。 家里面积一楼1300,二楼五百多。
问题:
1)下面不同的机子关键区别在哪儿,区别大吗?哪一种性价比比较好?
特别是Carrier comfort 15和 comfort 13 的比较。
2)当地还有一家代理Tempstar 这个牌子的,quote要明天才有。网上评论是他家的高
端机子T开头的 model 质量还不错,可以和Carrier比较。这个牌子如何?
谢谢你的建议。
Warranty: Ten Years Parts, Five Years Labor
1)Total Cost: $5,854
Carrier Comfort 15 High Efficiency Heat Pump & Comfort Series Air Handler
Carrier Comfort 15, 25HBC5... 阅读全帖
x*****7
发帖数: 4749
37
来自主题: LeisureTime版 - 感伤的 The Dogs of War
刚看完NG六月份的cover story - The Dogs of War,很有感触。
我一直很喜欢NG的主编Chris Johns,每一期的Editor's Note不止行文精彩,还能让人
感受到他满满的人文情怀。下面是他针对这篇六月份的cover story写的短文:
Layka, the dog pictured on our cover and here, was two when she was sent to
help clear an enemy compound in Afghanistan. During her search she was shot
by enemy forces and took four rounds from an AK-47 at point-blank range.
Despite her injuries, she attacked and subdued the shooter, protecting her
handler, Staff Sgt. Julian McDonald, and other members of the ... 阅读全帖
j***b
发帖数: 5901
38
来自主题: Living版 - 美国没有分体式空调买么??
中央空调没有挂在墙上的air handler前提是
1:在阁楼/地下室里面有复杂的duct系统。阁楼里还有巨大的air handler。
2:通常是用wall cavity来做air return。
这两样都是占用建筑空间的。而你如果想公平地比较mini split和中央空调,就应该想一下,如果可以牺牲一些建筑空间来隐藏mini split的air handler的话,那是不是就不那么难看了?我看隐藏mini split的air handler牺牲的建筑空间比中央空调的小得多。
另外,这个air handler是不是很难看,我觉得习惯是很大一方面。如果这东西普及的话,大家把它当作普通家具,想微波炉,冰箱一样,也就不难看了。毕竟后者也不是藏在墙里面的。要说到难看,外面的压缩机我看也挺难看,还有变压器,小区的电线杆等等。这些东西大家感觉不到就是因为习惯了。
比起mini split其它方面众多优点,一个普通的家庭,值不值得为了这一点点的美学上的牺牲,去弄那么复杂又低效的duct?
很多先进的东西推行的最大阻碍就是利益集团。我觉得mini split肯定是要受到hvac那帮人的抵制的。如果大... 阅读全帖
i***e
发帖数: 9429
39
来自主题: Living版 - 解答空调

俺是建议你可以用下去继续用,American Standard/Trane 的压缩机非常优秀,他们应
该是唯一的厂家自己设计压缩机的。
换heat pump 的同时,也必须要换Air Handler.
如果换回TRANE,Air Handler 有3个款式可选择,达到的SEER 是不同的。
1)heat pump Model #:4TWR5030G1
Air Handler Model #: TAM4A0A30S221SA with Multi-Speed PSC Motor (Good)
系统效率值 SEER:14
2) heat pump Model #:4TWR5030G1
Air Handler Model #: TAM7A0B30H21SA Variable Speed With Comfort-R Enhanced
Mode Option (Better)
系统效率值 SEER:14.5
3) heat pump Model #:4TWR5030G1
Air Handler Model #: TAM8A0B30V21CA Variable Speed With Sm... 阅读全帖
w*********e
发帖数: 47
40
来自主题: Living版 - 解答空调
Air handler 的 MAF。DATE 是 08/96。已经过了保证期了。
MOD。# TWE048P130A0
SERIAL # L353K4C5V
下面是TECH给我回的EMAIL:
The price is high on parts replacement because I have to replace with
matching equipment. This is American Standard ( coil or air handler).
The whole system bid is Carrier - 3.5-ton (same as you have), 14.0 SEER.
Warranty is one year on the coil, five years on the air handler and ten
years warranty on the whole system with one yr labor.
我原来的Air handler和heat pump都是Trane的,XR13。
这种情况我应该问问别家吗?如果选他家,我应... 阅读全帖
i***e
发帖数: 9429
41
来自主题: Living版 - 解答空调

你要去到air handler 那边,有的air Handler 上面可能也会有个2 pole 的 circuit
breaker,如果有,重新reset 以下(先用力彻底关,在开),
如果还是没反应,先关闭电源。打开air handler 的 cover, 找到电子版的位置。在电
子板上看看有没有一个保险丝(fuse,像老一代车用保险丝,通常是3或5Amp.).如果有
的话拉出来, 看看有没有烧断。先朝这个方向。。。如果有保险丝的话,请不要盲目
换。
如果没看到电子板的话,需要把air Handler 的型号写下来,同常在air handler 的外
面或里边哪个角落。需要上几张近和远距离的图上来。
w*********e
发帖数: 47
42
来自主题: Living版 - 解答空调
Air handler 的 MAF。DATE 是 08/96。已经过了保证期了。
MOD。# TWE048P130A0
SERIAL # L353K4C5V
下面是TECH给我回的EMAIL:
The price is high on parts replacement because I have to replace with
matching equipment. This is American Standard ( coil or air handler).
The whole system bid is Carrier - 3.5-ton (same as you have), 14.0 SEER.
Warranty is one year on the coil, five years on the air handler and ten
years warranty on the whole system with one yr labor.
我原来的Air handler和heat pump都是Trane的,XR13。
这种情况我应该问问别家吗?如果选他家,我应... 阅读全帖
i***e
发帖数: 9429
43
来自主题: Living版 - 解答空调

你要去到air handler 那边,有的air Handler 上面可能也会有个2 pole 的 circuit
breaker,如果有,重新reset 以下(先用力彻底关,在开),
如果还是没反应,先关闭电源。打开air handler 的 cover, 找到电子版的位置。在电
子板上看看有没有一个保险丝(fuse,像老一代车用保险丝,通常是3或5Amp.).如果有
的话拉出来, 看看有没有烧断。先朝这个方向。。。如果有保险丝的话,请不要盲目
换。
如果没看到电子板的话,需要把air Handler 的型号写下来,同常在air handler 的外
面或里边哪个角落。需要上几张近和远距离的图上来。
i***e
发帖数: 9429
44
来自主题: Living版 - 换空调,请大拿们帮看看报价
下面是给楼主和班上其他同学的参考,其实我一直有提到的。
5ton 的 air handler 是 指 5ton drive 的air handler, 通常用到的blower 马达 是
3/4 HP 或 1 HP,CFM在2000 左右。4ton drive 的air handler 通常用到的blower 马
达 是1/2 HP .
4ton 的冷气机可以和5ton drive 的air handler 配合,只要风管够大,而用电量只是
多出一点点,在帐单上不会明显的反应出来。
4ton 的冷气机用在5ton drive 的air handler 上 效率是会上升点,如果用到ECM 马
达 或ECM Variable Speed 马达效率提升就会很明显。
l*****a
发帖数: 38403
45
Months after snake-handling preacher's death, his son recovering from
snakebite
Snake-handling preacher Cody Coots got scared when the 6-foot long rattler
bit his right hand early Monday.
Just three months ago, his father, Jamie Coots, died within minutes of being
bitten by a rattlesnake during a service at his Middlesboro church.
The loss was still fresh for his family and friends, and Cody Coots, who
took over for his father, had just been bitten by an even bigger rattler.
At first, "All I cou... 阅读全帖
s****y
发帖数: 581
46
>lsnrctl status
不解,为什么我的service 会有两个instance(s)
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 31-AUG-2011 13:51:15
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=I2)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 31-AUG-2011 13:48:09
Uptime 0 days 0 hr. 3 ... 阅读全帖
z****e
发帖数: 54598
47
之所以这么做
是因为你启动的是一个main函数
which一定会挂靠在某一个verticle下
你也知道,一个process只能启动一个main啊
你不能启动多个main吧?
对吧?无论啥语言,都只能有一个main入口,一个process的话
但是你写的verticle每个都有一个main
那你不可能用命令行把他们挨个启动,那样就成multi process了
我们要做的是multi thread,而非process
所以把deployverticle的东西用程序语言来实现,这里其实我用的是python
然后你启动了这个verticle之后,这个verticle会依次去部署那些verticles
酱紫同一个process其实运行多个threads,which不需要你操心的
如果你启动了多个process的话,之间的协调是很蛋疼的一件事
vert.x把thread的communication都做好了,有bus
如果是单线程的process,启动多个的话,你要自己去找bus,然后安装
调试,测试,一堆事,烦死
至于handler,这个是程序员的一个约定俗成的名称
一般涌来搞一个具体的eve... 阅读全帖
m******n
发帖数: 155
48
来自主题: Computation版 - 怎么让FORTRAN程序产生一个MPI错误
我写了个MPI的custom error handler,用来在程序出现MPI错误时先把错误信息写到一
个log文件再退出。整个application是C和Fortran混合的,我在C程序部分故意call两次
MPI_Init,果然第二次call的时候我的custom error handler被调用了。但是在FORTRA
N程序里做同样的事情,并没有出现任何错误。我又用default的error handler试了,还
是没错误。是不是Error Handler只是C程序专有的?还是FORTRAN就不care调用两次MPI
_INIT?如果是这样如何产生一个MPI error来test我的error handler呢?
t****t
发帖数: 6806
49
来自主题: JobHunting版 - 谁知道这个问题的答案
1. default sigfpe handler
2. default sigsegv handler
both signals are likely from faults generated by CPU and caught by OS. OS wi
ll translate the faults to signal and generate the signal to the violating p
rocess. the process will be redirected to the corresponding signal handler (
given the mask and everything is ok). the default signal handler is likely i
n libc.
H******7
发帖数: 1728
50
实现job queue,要求实现3个API:enqueue, register task, executeAll。这样你可
以enqueue 一个job,job会存一个meta data,比如type啊,input parameters啊,然
后用register API给job register task handler,最后调用executeAll来execute
queue里的所有job对应的handler。
比较practical的OOD题目,用queue来存jobs,用map来存task handler。
总结:
他家用coderpad,需要编译,最后我register了一些print string的task,然后运行
code看print出来对不对。task handler那里我用了java 8的functional interface,
写的时候他也ok,但是最后他说其实是想要我自己design一个interface叫TaskHandler
1 2 3 4 5 末页 (共10页)