Chinaunix

标题: Solaris Developer Quiz November 22, 2006 [打印本页]

作者: Lippman    时间: 2008-01-15 18:01
标题: Solaris Developer Quiz November 22, 2006
Dtrace doesn't support control flow statements. How do I work around it ?
a) Not true, DTrace does support control flow statements.
b) You can emulate the while loop using tick/profile probes and the if statements with the help of cascading predicates.
c) 42
d) You can't.

The correct answer is b.
DTrace does not support control flow statements but you can emulate the while loop using tick/profile probes and the if statements with the help of cascading predicates.
42 is the Answer to The Ultimate Question of Life, the Universe and Everything, not this.
One way or another, there is very little Solaris can't do.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/27174/showart_465029.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2