h****e 发帖数: 2125 | 1 use a linked list, each node has a address pointing to the start of big
chunk of contiguous memory of size N. Whenever it needs to grow, just
allocate another chunk of memory of size N and append a new node having the
starting address to the linked list. |
|
a*****t 发帖数: 30 | 2 class Airplane { // same as before, except there's
public: // now a decl. for operator delete
...
static void operator delete(void *deadObject,
size_t size);
};
// operator delete is passed a memory chunk, which,
// if it's the right size, is just added to the
// front of the list of free chunks
void Airplane::operator delete(void *deadObject,
size_t size)<--------------------
{
if (deadObject == 0) return; |
|
g*********s 发帖数: 1782 | 3 在调一个memory corruption的bug。purify/valgrind都没帮上忙,只好一点点跟踪。
目前怀疑的一个方向是动态分配的小型对象(8个字节以下)太多。如果是这种情况,
memory pool的正确处理方法是什么?
如果是保持chunk里特定长度的对象数目不变,那么即使还有很多内存可用,也会出现
out-of-memory问题。
如果允许split其他chunk,那么回收时造成很多碎片,还是会有问题。
研究memory pool的高手指点一下吧。 |
|
I*******e 发帖数: 1879 | 4 ☆─────────────────────────────────────☆
st09 (st09) 于 (Tue Jun 9 22:11:14 2009, 美东) 提到:
做了一道笔试题,下面是和我的答案如下,请点评一下.
There are situations when a program frequently allocates variables of the
same type from the heap and deletes them after processing. To avoid costly
memory allocation, design and implement a class that returns chunks of
memory of the size of the variable and accepts those chunks of memory back
for further reuse.
Example:
class MemPool
{
…
public:
void |
|
c*****t 发帖数: 1879 | 5 1. Given N >= 4,
if even, then
(N / 2) * (N / 2) = N^2 / 4 >= N
if odd, then
(N - 1) / 2 * (N + 1) / 2 = (N^2 - 1) / 4 > N
Thus, N can be break into chunks of smaller than 4.
2. Given that 2^3 < 3^2, all fragments should be broken into chunks of
3, until 2,3,4 are left. |
|
B*******g 发帖数: 1593 | 6 好像STL有些container分配内存是chunk by chunk的 比如一开始1000 bytes, 你需要
地1001
byte的话就再分配1000 b 总共2000 bytes..你即使pop了,内存地址指向的数据变得无
效,但是
系统认为你可能会再用到这部分空间,所以并不回收内存;动态分配内存的cost很高 |
|
y***d 发帖数: 2330 | 7 So np points into the chunk of memory allocated.
So just forget about np once 'free(tmp)' is called, since you've already
discarded this chunk of memory. |
|
f********x 发帖数: 99 | 8 The world beyond batch: Streaming 101: A high-level tour of modern data-
processing concept
http://radar.oreilly.com/2015/08/the-world-beyond-batch-streami
by Tyler Akidau August 5, 2015
Editor’s note: This is the first post in a two-part series about the
evolution of data processing, with a focus on streaming systems, unbounded
data sets, and the future of big data.
Streaming data processing is a big deal in big data these days, and for good
reasons. Amongst them:
Businesses crave ever more tim... 阅读全帖 |
|
M*****e 发帖数: 279 | 9 我的办法可能能帮你解决问题.
我曾经试过多种办法提没有降解(用Bio-Rad or Agilent Bioanalyzer测integrity or
quality (RNA Integrity Number (RIN) by Agilent or RNA Quality Index (RQI)
by Bio-Rad),不是仅仅用Nanodrop测RNA integrity or quality)的total RNA,然后
做microarray.
1.液氮研磨:RNA quality好,可以做microarray,但是麻烦和太慢(原因你应该知道
)。
2. Glass tissue homogenizer: it didn't work for me to grind tissue in
Trizol in ice bucket with ice, although my tissue was thin and tiny.
Bioanalyzer showed RNA degradation.It's also low through-put.
3. Hand-held electr... 阅读全帖 |
|
z****k 发帖数: 95 | 10 小本实验课take home final,本人对worm 不太懂,上课也没讲,求大牛帮看看题,TA
说了,每道题都能在1-2 sentence 回答出来。
4.
You transfer 3 L1 C. elegans larvae to a MGM plate on Monday morning. You
incubate the plate at room temperature. How many new larvae do you expect
to see on your plate on Wednesday morning?
0?
5.
During your genetic screen of your C. elegans, you isolate a very short worm
, with a normal sized head, appearing to be laying eggs. What tissue/organ
may be affected by a mutation in your worm?
(5 points)
Connective t... 阅读全帖 |
|
G****n 发帖数: 145 | 11 The switch occured sometime later in the 80s so Professor Chang Chun and Professor
Li Lode must have come earlier. See the following article on http://www.logoi.com/notes/peking-beijing.html
Peking and Beijing - Why and when did Peking change its name to Beijing?
Peking and Beijing
Peking and Beijing - Why and when did Peking change its name to Beijing?
Our readers often ask the questions: Why did Peking change its name to
Beijing? When did this happen? Whose decision was this? And if the cit... 阅读全帖 |
|
m****p 发帖数: 404 | 12 原文
http://forums.studentdoctor.net/showthread.php?t=884279
念药学院的学长学姐有什么评论么
德州 加州 pharmacy school 一家一家的开 2015-2020 铁定会过饱和了吧
最后几段是讲his family 自己开店30年的经验/挫折
还有文中提到的 MTM 是什么缩写?
1st -- Before you jump on me, understand this: I am only speaking about what
I know from extensive analysis of the California market (maybe some of this
will translate into other states but again this is for California people
primarily). If you attend, UCSF, USC, Western, UCSD, etc this job market
post is for you.
2nd -- Feel... 阅读全帖 |
|
t****e 发帖数: 527 | 13 it is a technique called " chunk"
if you search psych info with the key word :chunk, you will get plenty. |
|
a**x 发帖数: 215 | 14 i graduated in 2003, during my phd years i worked on educational testing
data (computerize adaptive testing), social study (election related),
psychology and biology related data sets. since 2003, i have been working in
financial industry (quant trading) till now. i have never met a problem
with data size over 1G.
so im really interested in knowing what fields you guys are working in to
handle 200G of txt data?
i dont mean no problem will initially have data of that size. simply put,
tick by tic... 阅读全帖 |
|
|
w*******y 发帖数: 60932 | 16 Use code UNILVR77 after subscribe and save
Reduced Fat Super Chunk
Link:
Super Chunk
Link:
Natural Creamy
Link:
Roasted Honey Nut Creamy
Link:
|
|
g********n 发帖数: 2314 | 17 【 以下文字转载自 SanFrancisco 讨论区 】
发信人: dadabear (bless you), 信区: SanFrancisco
标 题: [合集] goldenrain的观点未免偏颇
发信站: BBS 未名空间站 (Thu Feb 8 16:24:51 2007), 站内
☆─────────────────────────────────────☆
MSJ (Mission San Jose) 于 (Tue Feb 6 00:42:38 2007) 提到:
看完他blog的《现在在哪里买房风险小》,我只能笑着摇摇头。在我眼里,这个列表与
其说是“风险小”列表,不如说是“房子难涨地区列表”。试论证一二:
1. 常言道“强者恒强,弱者恒弱”。NYC, SF地区房价高企不是一年两年了,支撑房价
的不是那个affordability的percentage,而是能afford的人口数和房子总数的比例。
这里看百分比是没有多大意义的。只要还有人能买得起还愿意买,即使affordability
只有15%又如何呢?
2. 正如high tech公司的P/E要远大于... 阅读全帖 |
|
L******8 发帖数: 4093 | 18 3/4 cup butter, softened
1/2 cup sugar
1/2 cup packed brown sugar
1 egg
2 tablespoons whole milk
1 teaspoon vanilla extract
1 1/4 cups all-purpose flour
1 1/4 cups small chunk walnut
1/2 teaspoon baking soda
1/4 teaspoon salt
1/8 teaspoon ground cinnamon
1 1/4 cups semisweet chocolate chips
In a large bowl, cream butter and sugars. Beat in the egg, milk and vanilla.
Combine the flour, walnut chunks, baking soda, salt and cinnamon; gradually
add to creamed mixture and mix well. Stir in chocolate |
|
a*e 发帖数: 431 | 19
在其他条件相近的情况下,简体字也不一定比繁体字更容易普及。
小孩子学习汉字通常是先学习偏旁部首,然后学习新字。
在学习偏旁部首时,简体字的优势是需要花的力气较繁体字要少,但是学习偏旁部首的
过程其实不长也不够残酷,几个星期就完事。
一旦偏旁部首学习完毕,再识新字的时候,简体字的优势则不再明显,因为一旦学会,
偏旁部首在脑子里是作为一个chunk一个chunk的信息存储,人脑处理起来简繁体字没有
区别。举例子说,如果已经学会,人脑处理偏旁部首"讠"和"言"都是作为一个整体来被
处理的,再举例子,背熟圆周率(3.141592653589793238462643387219502884197169)
这串数字,再背熟3.87664这串数之后,人脑再对这两串数字也是整体的提取和加工,付
出的努力是一样的,并不是每一次处理前面那串数字都比后面那一串更费力。
其他网友还说道,某些简体字不make sense,学习起来比繁体字来需要花费更多的努力。
另外,人脑这个东西异常复杂,给小孩子较复杂的文字学习,背不住比给他们简单的文
字学习更有利于智力的发展,当然,这个是一个empirical quest |
|
|
R***r 发帖数: 3519 | 21 对于大妈们, 2000万 is a big chunk of money.
对于空姐们, 2000万 is just one transaction.
whose 眼光长远? |
|
S*********n 发帖数: 4050 | 22 http://www.economist.com/node/10870258?story_id=10870258&top_st
Simmering resentment boils over
Mar 14th 2008 | LHASA
THE Chinese authorities had been fearing trouble, but nothing on this scale.
An orgy of anti-Chinese rioting convulsed the Tibetan capital, Lhasa, on
Friday March 14th, leaving security forces uncertain how to respond. For
many hours mobs controlled the streets, burning and looting as they pleased.
The approach of Beijing’s Olympic games in August is seen by many of Lhasa
’s resi... 阅读全帖 |
|
|
s******u 发帖数: 82 | 24 His $30 million startup money was from Yale. It is not new that Chinese
alumni donate large chunk of money to their schools. Matthew Li ( 黎彦修)
just donated half a million to Chicago. I don't see him make a big fuzz
about it. |
|
e********3 发帖数: 18578 | 25 Monks. Many of the classic Latin texts were copied as manuscripts over and
over again, by various people, over the years. Here's an example of De
Agricultura - 12th century manuscript.They don't necessarily survive intact;
for example, Appian's 'Roman History' is in chunks of Latin manuscript,
Byzantine fragments, and other parts are known of, but missing. Ancient
writers referred to other parts of their text and, helpfully, to parts of
other texts. This is how we know that some texts exist that |
|
a*********a 发帖数: 3656 | 26 no, a very big chunk of financial aid or student loan is funded by the
government, backed by the tax payer. if some one default on their student
loan or the government waive the payment, the tax payers eat the loss.
not to mention public universities are by and large funded by the state tax
payers. |
|
w*******g 发帖数: 9932 | 27 【 以下文字转载自 ChinaNews 讨论区 】
发信人: wxz001 (artmartial), 信区: ChinaNews
标 题: Canadians watch Lhasa mob in horror
发信站: BBS 未名空间站 (Sat Mar 22 20:54:28 2008)
http://news.therecord.com/News/CanadaWorld/article/323910
BEIJING
For 19-year-old John Kenwood of Victoria, his worst Lhasa moment was seeing
a Chinese man being pummelled senseless by a mob hurling chunks of pavement.
"He may have died," Kenwood said last night. "I can't be certain."
For Vancouver-born Alex Sinclair, 40, it was the agonizing time |
|
p******o 发帖数: 9007 | 28 They still have huge balance sheets of home loans.
Once they dump a big chunk of debt securities to market, the market will
sink.
Total debt for FNM is 884B, 837B for FRE. |
|
t***h 发帖数: 5601 | 29 Twenty-one years ago, Li Lu was a student leader of the Tiananmen Square
protests. Now a hedge-fund manager, he is in line to become a successor to
Warren Buffett at Berkshire Hathaway Inc.
Dennis Berman tells the story about one of the leaders at Tiananmen Square
who is now one of the top candidates to manage Berkshire Hathaway's
investment portfolio.
Mr. Li, 44 years old, has emerged as a leading candidate to run a chunk of
Berkshire's $100 billion portfolio, stemming from a close friendship w |
|
s********n 发帖数: 1540 | 30 Do you have proof to prove you are not a piece of shit and there is not a
chunk of shit in your dumb ass brain.
Bet your grandpa would be proud of having a impotent retarded son of biatch. |
|
m**********n 发帖数: 27535 | 31 BEIJING – China joined the world in breathless coverage of the Chilean mine
rescue, but when a gas blast killed 21 Chinese miners and trapped 16
Saturday, the national TV evening news didn't say a word. Rescuers said they
were fighting tons of coal dust to reach the miners, who have been located
but whose condition was unknown.
The rescuers also faced dangerous gas levels and the risk of falling rocks
as they worked their way into the mine pit.
The early-morning explosion in central China happen... 阅读全帖 |
|
x*********g 发帖数: 11508 | 32 一年前的文章,现在读仍然很有意义。
http://www.bbc.co.uk/blogs/newsnight/paulmason/2009/11/rare_earth_the_new_great_game.html
Rare earth: The New Great Game
Post categories: China, Energy, Technology, Trade
Paul Mason | 14:57 UK time, Wednesday, 18 November 2009
The rare earth story goes to the heart of China's relationship with the West
- not just that, but to the heart of the West's inability to understand
China.
It is a complicated story, involving a whole chunk of the Periodic Table,
high secrecy, patent batt... 阅读全帖 |
|
A*******e 发帖数: 12486 | 33 ZHUHAI, China—A year after the collapse of the Soviet Union, a cash-strappe
d Kremlin began selling China a chunk of its vast military arsenal, includin
g the pride of the Russian air force, the Sukhoi-27 fighter jet.
For the next 15 years, Russia was China's biggest arms supplier, providing $
20 billion to $30 billion of fighters, destroyers, submarines, tanks and mis
siles. It even sold Beijing a license to make the Su-27 fighter jet—with im
ported Russian parts.
Today, Russia's military bonan... 阅读全帖 |
|
u****n 发帖数: 7521 | 34 http://seeingredinchina.wordpress.com/
Can the world afford China’s heating bill?
Posted on January 4, 2011 by Tom
Yesterday we were looking at how cold it is outdoors and in here in China.
Today I want to get to the meat of the problem that lies just beyond that
thought. Is it possible for China (or any country) to develop without
destroying the fragile environment?
I’ll start with something I’m not so proud of; my wife and I are currently
running 3 space heaters full blast, all the time. Not b... 阅读全帖 |
|
s**********a 发帖数: 3273 | 35 Please, the whole world knows European central banks sold a large
chunk of their gold reserve at almost the lowest price around 2000.
And now they start buying back.
Anybody with a little financial bankground knows about this. |
|
c****g 发帖数: 268 | 36 I do not care which county they decide to go, I only know that chunk of land
goes to China. |
|
c**i 发帖数: 6973 | 37 童倩, 日本官民与美国记者争论钓鱼岛主权. BBC Chinese, Jan 28, 2011.
http://www.bbc.co.uk/zhongwen/simp/world
/2011/01/110128_japan_china_usa.shtml
Note:
(a) In chronological order.
(i) Nicholas D Kristof, The Rise of Chinese Cheneys. New York Times, Jan 20,
2011.
http://www.nytimes.com/2011/01/20/opinion
/20kristof.html?scp=3&sq=senkaku%20&st=cse
("Aggressive territorial claims by Beijing are unnerving China’s neighbors
as well as Washington. My take is that China has a strong historical case in
claiming the dispu... 阅读全帖 |
|
M*****8 发帖数: 17722 | 38 隐形技术的血泪源头。(ZT)
The tearful origins of China's stealth
By Peter Lee
The recent test flight of China's J-20 stealth fighter has occasioned
certain uproar in international security circles, as well as paroxysms of
joy among China's more nationalistic netizens.
Despite no hard information on its stealthiness or its capabilities beyond
the fact that it was able to take off, fly for 15 minutes, and land, the J-
20 is already serving as justification for heightened concern and its
inevitable adjunct, h... 阅读全帖 |
|
D*****r 发帖数: 6791 | 39 http://www.reuters.com/article/2011/03/15/us-japan-quake-idUSTR
By Taiga Uranaka and Ki Joon Kwon
FUKUSHIMA, Japan | Tue Mar 15, 2011 4:01am EDT
(Reuters) - Japan faced potential catastrophe on Tuesday after a quake-
crippled nuclear power plant exploded and sent low levels of radiation
floating toward Tokyo, prompting some people to flee the capital and others
to stock up on essential supplies.
Prime Minister Naoto Kan urged people within 30 km (18 miles) of the
facility north of Tokyo to remai... 阅读全帖 |
|
z**********u 发帖数: 754 | 40 I think she meant seared tuna where a chunk of tuna is seared on a super hot
grill for 20 seconds or so per side, leaving the inside raw, then sliced
thin and served. |
|
c**i 发帖数: 6973 | 41 Richard Boudreaux, Russia's Fading Army Fights Losing Battle to Reform
Itself. Wall Street Journal, Apr 20, 2011.
http://online.wsj.com/article/SB100014240
52748703678404575636412726670020.html
Quote:
"Combat training consisted of two firing exercises a year, he [a
professional soldier] says, and a chunk of his paycheck was routinely
withheld by corrupt officers.
"Two decades after the Cold War ended, China is engaged in a military
buildup that has many of its neighbors, including Russia, scramb... 阅读全帖 |
|
v***0 发帖数: 5096 | 42 "American workers would probably get health insurance, vacation, and paid ho
lidays, whether they were union or not.
If you don't like well-trained, well-paid workers in safe jobsites that
are kind to the environment, I suggest you move to China. "
By 2008, a good chunk (close to 40%) of "American workers" in the constructi
on industry are illegal immigrants. Somehow I doubt they get the per
ks which ordinary union workers get. |
|
f*****Q 发帖数: 1912 | 43 http://www.nytimes.com/2010/08/18/dining/18melonside.html
How to Choose a Watermelon
By KIM SEVERSON
Published: August 17, 2010
LIKE relationships, watermelons offer no guarantees. But a little wisdom
from the experts can help you choose a good one at the store.
First, find a melon that’s dull, not shiny, and uniform in shape. Odd bumps
and curves can mean it was grown with irregular runs of water or sun.
Then look for a creamy patch. It’s called the field spot — the place where
the watermelon r... 阅读全帖 |
|
|
s**********y 发帖数: 353 | 45 How about 0.01% people with 67% wealth paying all the taxes? Do you like that
kind of society? What's the fair share for the rich in such a case? 67%?
I don't know what should be the fair share for the rich, but I am thinking if the wealth gap between the rich
and the rest is getter wider, more people may suffer during recessions and a big chunk of capitals just lies in
the banks doing nothing.
fair |
|
n**********r 发帖数: 2061 | 46 If USA invades China.
Assumption: USA send navy to invade china and take Hainan Province as USA
territory in one day. All Chinese army and citizens on Hainan island were
killed as casualties.
Question: Will CCP lead PLA fighting back?
Consequence 1: If CCP lead PLA fighting back, all the USA government bond
that CCP purchased is declared to be invalid; all the CCP leaders’ assets
in USA and Europe are seized by FBI; all the CCP leaders’ children in USA
are taken into custody by FBI and questione... 阅读全帖 |
|
T*R 发帖数: 36302 | 47 Some Illinois public school teachers earning six-figure salaries
By ROSALIND ROSSI AND ART GOLAB Staff Reporters May 30, 2011 8:48PM
“We’re not just teachers,” says Dirksen Middle School teacher Crystal
Pedroni. “We’re nurses, counselors, we are their parents when their
parents are not there.”
Want to wind up making at least six figures as a public school teacher?
Send your resume to Highland Park or Deerfield High School, both in Township
High School District 113.
The district — which has no te... 阅读全帖 |
|
m**5 发帖数: 729 | 48 ENI leads Libya oil race, rebels warn Russia,China
By Svetlana Kovalyova and Emma Farge
MILAN/LONDON, Aug 22 (Reuters) - Italian oil company Eni led the charge back
into Libya on Monday as rebels swept into capital Tripoli, hailing the end
of Muammar Gaddafi's rule and warning Russian and Chinese firms of contract
revisions.
Gaddafi's fall will reopen the doors to the country with Africa's largest
oil reserves. New players such as Qatar's national oil company and trading
house Vitol are set to c... 阅读全帖 |
|
y***e 发帖数: 676 | 49 http://www.nytimes.com/2011/09/01/business/global/india-looks-t
其中一段:
"India’s views have also been shaped by a 1962 war that ended with China
seizing a chunk of the northern India state of Kashmir. The countries still
have an unsettled border, and China claims a large piece of territory
controlled by India." |
|
p******o 发帖数: 9007 | 50 In effect, rich American park a big chunk of their money oversea too. |
|