日拾朝夕--05112017

星期四 晴

美丽不是一件小事,美丽是让所有人都见证,你将自己的

美好活出来的大事。

每日一我

早上继续兰州拉面,中午上尊巴课。2点左右觉得饿去补吃

午饭,点了韩国泡菜饭。晚上自己蒸鱼炒青菜。

每日一善

晚上参加Toastmasters 会议,那么多阳光灿烂的美好人儿,

有什么理由不把自己的生命活在这美好中呢。

每日一习

Hot path & cold path

看了hot path 和cold path.

If there is one piece of advice to dispense to those who must

develop parallel systems, it is to know which paths through

your code you want to be able to execute in parallel(the hot paths)

versus which paths can execute sequentially without affecting

performance(the cold paths). In our experience, much of the software

we write is bone-cold in terms of concurrent execution: it is executed only

when initializing, in administrative paths, when unloading, etc. Not only is it

a waste of tie to make such cold paths execute with a high degree of parallelism,

but it is also dangerous: these paths are often among the most difficult and error-prone

parallelize.

In cold paths, keep the locking as coarse-grained as possible. Conversely,

in hot paths--locking strategies must be simple and fine-grained.

What if we don't know if a given boy of code will be the hot path in the

system? In the absence of data, err on the side of assuming that your code is

in a cold path and adopt a correspondingly coarse-grained locking strategy--

but be prepared to be proven wrong by the data.

每日一得

我希望你能见识到令你惊奇的事物,我希望你能体验未曾有过的情感;

我希望你能遇见一些想法不同的人,我希望你为自己的人生感到骄傲。

如果你发现自己还没有做到,我希望你有勇气重头再来。

--《本杰明·巴顿奇事》电影

*************************************************

我善习得

无忧无惧

*************************************************

你可能感兴趣的:(日拾朝夕--05112017)